The class is named Revision, no need to shout its name :)
authorPlatonides <platonides@gmail.com>
Fri, 26 Oct 2012 21:41:24 +0000 (23:41 +0200)
committerPlatonides <platonides@gmail.com>
Fri, 26 Oct 2012 21:41:24 +0000 (23:41 +0200)
Remove a couple of unused globals.

Change-Id: I750536bc05ed7a5433840b916b17df93d30da5bf

maintenance/refreshLinks.php

index 535808d..9ba8682 100644 (file)
@@ -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;
                }