Make fixLinksFromArticle public and static
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 20 Aug 2010 16:49:17 +0000 (16:49 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 20 Aug 2010 16:49:17 +0000 (16:49 +0000)
maintenance/refreshLinks.php

index 917c53a..0083bb6 100644 (file)
@@ -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 );