From 6882ff0d75bcf654c56e39034da678456c40c6d0 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 26 Oct 2012 23:41:24 +0200 Subject: [PATCH] The class is named Revision, no need to shout its name :) Remove a couple of unused globals. Change-Id: I750536bc05ed7a5433840b916b17df93d30da5bf --- maintenance/refreshLinks.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.20.1