Broke some TOC interaction with <ref> in 14350; fixed.
[lhc/web/wiklou.git] / maintenance / refreshLinks.inc
index fb513ad..34ea629 100644 (file)
@@ -14,7 +14,6 @@ function refreshLinks( $start, $newOnly = false, $maxLag = false, $end = 0 ) {
 
        $fname = 'refreshLinks';
        $dbr =& wfGetDB( DB_SLAVE );
-       $dbw =& wfGetDB( DB_MASTER );
        $start = intval( $start );
 
        # Don't generate TeX PNGs (lack of a sensible current directory causes errors anyway)
@@ -63,13 +62,11 @@ function refreshLinks( $start, $newOnly = false, $maxLag = false, $end = 0 ) {
                        }
                        fixLinksFromArticle( $id );
                }
-
-
        }
 }
 
 function fixLinksFromArticle( $id ) {
-       global $wgTitle, $wgArticle, $wgOut, $wgParser;
+       global $wgTitle, $wgParser;
        
        $wgTitle = Title::newFromID( $id );
        $dbw =& wfGetDB( DB_MASTER );