if ( $redirectsOnly )
$this->fixRedirect( $row->page_id );
else
- $this->fixLinksFromArticle( $row->page_id );
+ self::fixLinksFromArticle( $row->page_id );
}
} else {
if ( !$end ) {
$this->output( "$id\n" );
wfWaitForSlaves( $maxLag );
}
- $this->fixLinksFromArticle( $id );
+ self::fixLinksFromArticle( $id );
}
}
}
* 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 );