From 74d859364f55dc38004fbfe5c6385958e1db88c7 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 20 Aug 2010 16:49:17 +0000 Subject: [PATCH] Make fixLinksFromArticle public and static --- maintenance/refreshLinks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); -- 2.20.1