some unused globals as per #3692
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 30 Apr 2006 16:23:01 +0000 (16:23 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 30 Apr 2006 16:23:01 +0000 (16:23 +0000)
config/index.php
includes/AjaxFunctions.php
includes/Article.php
maintenance/rebuildInterwiki.inc
maintenance/refreshLinks.inc

index 44bb403..135127b 100644 (file)
@@ -1164,7 +1164,6 @@ function writeLocalSettings( $conf ) {
                $slconf['RightsIcon'] = $conf->RightsIcon;
        }
 
-       $sep = PATH_SEPARATOR;
        $localsettings = "
 # This file was automatically generated by the MediaWiki installer.
 # If you make manual changes, please keep track in case you need to
index 3e826ac..3580a29 100644 (file)
@@ -98,7 +98,7 @@ class AjaxCachePolicy {
                        
 
 function wfSajaxSearch( $term ) {
-       global $wgContLang, $wgUser, $wgRequest, $wgAjaxCachePolicy;
+       global $wgContLang, $wgAjaxCachePolicy;
        $limit = 16;
        
        $l = new Linker;
index 99f21d9..9e2c9d0 100644 (file)
@@ -337,7 +337,8 @@ class Article {
                                        # TODO
                                }
                        }
-                       $lastid = $oldid;
+                       # unused:
+                       # $lastid = $oldid;
                }
                if ( !$oldid ) {
                        $oldid = 0;
index fea5f64..d719fd4 100644 (file)
@@ -31,7 +31,7 @@ class Site {
 }
 
 function getRebuildInterwikiSQL() {
-       global $langlist, $languageAliases, $prefixRewrites, $wgDBname;
+       global $langlist, $languageAliases, $prefixRewrites;
 
        # Multi-language sites
        # db suffix => db suffix, iw prefix, hostname
index fb513ad..4780d8e 100644 (file)
@@ -69,7 +69,7 @@ function refreshLinks( $start, $newOnly = false, $maxLag = false, $end = 0 ) {
 }
 
 function fixLinksFromArticle( $id ) {
-       global $wgTitle, $wgArticle, $wgOut, $wgParser;
+       global $wgTitle, $wgParser;
        
        $wgTitle = Title::newFromID( $id );
        $dbw =& wfGetDB( DB_MASTER );