X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrefreshLinks.php;h=9ba86826661aad37189fbb6088a41d89e7b57866;hb=d26f07888b8002fd1a7f5101fe5f6a70bbb85e2a;hp=535808d606e1a973439ddd884bf120d3cf0f1730;hpb=06e63a5843a7989e0aff90edfa3d6be2e6dfb2fb;p=lhc%2Fweb%2Fwiklou.git 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; }