aboutsummaryrefslogtreecommitdiffstats
path: root/includes/SpecialUndelete.php
diff options
context:
space:
mode:
authorGabriel Wicke <gwicke@users.mediawiki.org>2004-02-02 01:40:03 +0000
committerGabriel Wicke <gwicke@users.mediawiki.org>2004-02-02 01:40:03 +0000
commitef98e54686112443e4a7799407b41fa33bc72fbc (patch)
tree3f960e8babca6860c4604c6d05e2fb2612211601 /includes/SpecialUndelete.php
parentd305622d9a5956f6d900694854df4d0f29eba4e5 (diff)
downloadmediawikicore-ef98e54686112443e4a7799407b41fa33bc72fbc.tar.gz
mediawikicore-ef98e54686112443e4a7799407b41fa33bc72fbc.zip
Squid branch merge. Calls to purge functions in Article.php and special pages.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2426
Diffstat (limited to 'includes/SpecialUndelete.php')
-rw-r--r--includes/SpecialUndelete.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php
index 8111e2b9a3f7..83003b8a33fb 100644
--- a/includes/SpecialUndelete.php
+++ b/includes/SpecialUndelete.php
@@ -110,6 +110,7 @@ function wfSpecialUndelete( $par )
/* private */ function doUndeleteArticle( $namespace, $title )
{
global $wgUser, $wgOut, $wgLang, $target, $wgDeferredUpdateList;
+ global $wgUseSquid, $wgInternalServer;
$fname = "doUndeleteArticle";
@@ -181,6 +182,13 @@ function wfSpecialUndelete( $par )
Article::onArticleCreate( $to );
+ # Squid purging
+ if ( $wgUseSquid ) {
+ /* this needs to be done after LinksUpdate */
+ $u = new SquidUpdate($to);
+ array_push( $wgDeferredUpdateList, $u );
+ }
+
#TODO: SearchUpdate, etc.
}