Merge "The class is named Revision, no need to shout its name :) Remove a couple...
authorIAlex <ialex.wiki@gmail.com>
Sat, 27 Oct 2012 06:10:18 +0000 (06:10 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 27 Oct 2012 06:10:18 +0000 (06:10 +0000)
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;
                }