From: Gabriel Wicke Date: Tue, 3 Feb 2004 01:53:27 +0000 (+0000) Subject: reverted my edit, purging should be already done in updateArticle X-Git-Tag: 1.3.0beta1~1029 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=9356ead84db332fbccc5c2b4a4aab340fc341825;p=lhc%2Fweb%2Fwiklou.git reverted my edit, purging should be already done in updateArticle --- diff --git a/includes/Article.php b/includes/Article.php index 883bcaa0c5..3f57d9efbd 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -941,7 +941,6 @@ class Article { function rollback() { global $wgUser, $wgLang, $wgOut, $from; - global $wgUseSquid, $wgInternalServer; if ( ! $wgUser->isSysop() ) { $wgOut->sysopRequired(); @@ -1016,14 +1015,6 @@ 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 ); }