From: Platonides Date: Fri, 26 Oct 2012 21:41:24 +0000 (+0200) Subject: The class is named Revision, no need to shout its name :) X-Git-Tag: 1.31.0-rc.0~21842^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=6882ff0d75bcf654c56e39034da678456c40c6d0;p=lhc%2Fweb%2Fwiklou.git The class is named Revision, no need to shout its name :) Remove a couple of unused globals. Change-Id: I750536bc05ed7a5433840b916b17df93d30da5bf --- diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index 535808d606..9ba8682666 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -206,8 +206,6 @@ class RefreshLinks extends Maintenance { * @param $id int The page_id */ public static function fixLinksFromArticle( $id ) { - global $wgParser, $wgContLang; - $page = WikiPage::newFromID( $id ); LinkCache::singleton()->clear(); @@ -216,7 +214,7 @@ class RefreshLinks extends Maintenance { return; } - $content = $page->getContent( REVISION::RAW ); + $content = $page->getContent( Revision::RAW ); if ( null === false ) { return; }