From: Chad Horohoe Date: Fri, 20 Aug 2010 16:49:17 +0000 (+0000) Subject: Make fixLinksFromArticle public and static X-Git-Tag: 1.31.0-rc.0~35424 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=74d859364f55dc38004fbfe5c6385958e1db88c7;p=lhc%2Fweb%2Fwiklou.git Make fixLinksFromArticle public and static --- diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index 917c53ae23..0083bb674b 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -119,7 +119,7 @@ class RefreshLinks extends Maintenance { if ( $redirectsOnly ) $this->fixRedirect( $row->page_id ); else - $this->fixLinksFromArticle( $row->page_id ); + self::fixLinksFromArticle( $row->page_id ); } } else { if ( !$end ) { @@ -149,7 +149,7 @@ class RefreshLinks extends Maintenance { $this->output( "$id\n" ); wfWaitForSlaves( $maxLag ); } - $this->fixLinksFromArticle( $id ); + self::fixLinksFromArticle( $id ); } } } @@ -190,7 +190,7 @@ class RefreshLinks extends Maintenance { * Run LinksUpdate for all links on a given page_id * @param $id int The page_id */ - private function fixLinksFromArticle( $id ) { + public static function fixLinksFromArticle( $id ) { global $wgTitle, $wgParser; $wgTitle = Title::newFromID( $id );