From: Gabriel Wicke Date: Tue, 3 Feb 2004 01:48:16 +0000 (+0000) Subject: purging on revert X-Git-Tag: 1.3.0beta1~1030 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=3a4d7638cacf4d6bfe47bfe83d12ef12f6ac5c4b;p=lhc%2Fweb%2Fwiklou.git purging on revert --- diff --git a/includes/Article.php b/includes/Article.php index 3f57d9efbd..883bcaa0c5 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -941,6 +941,7 @@ class Article { function rollback() { global $wgUser, $wgLang, $wgOut, $from; + global $wgUseSquid, $wgInternalServer; if ( ! $wgUser->isSysop() ) { $wgOut->sysopRequired(); @@ -1015,6 +1016,14 @@ class Article { $wgOut->addHTML( "

" . $newcomment . "

\n
\n" ); $this->updateArticle( Article::getRevisionText( $s ), $newcomment, 1, $this->mTitle->userIsWatching(), "", $bot ); + # Squid purging + if ( $wgUseSquid ) { + $urlArr = Array( + $wgInternalServer.wfLocalUrl( $this->mTitle->getPrefixedURL()) + ); + wfPurgeSquidServers($urlArr); + } + Article::onArticleEdit( $this->mTitle ); $wgOut->returnToMain( false ); }