From 698d8d66a7652660aa234811c153348ffc8b4907 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 30 Apr 2006 16:23:01 +0000 Subject: [PATCH] some unused globals as per #3692 --- config/index.php | 1 - includes/AjaxFunctions.php | 2 +- includes/Article.php | 3 ++- maintenance/rebuildInterwiki.inc | 2 +- maintenance/refreshLinks.inc | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/index.php b/config/index.php index 44bb4033c4..135127b6db 100644 --- a/config/index.php +++ b/config/index.php @@ -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 diff --git a/includes/AjaxFunctions.php b/includes/AjaxFunctions.php index 3e826acf37..3580a293c5 100644 --- a/includes/AjaxFunctions.php +++ b/includes/AjaxFunctions.php @@ -98,7 +98,7 @@ class AjaxCachePolicy { function wfSajaxSearch( $term ) { - global $wgContLang, $wgUser, $wgRequest, $wgAjaxCachePolicy; + global $wgContLang, $wgAjaxCachePolicy; $limit = 16; $l = new Linker; diff --git a/includes/Article.php b/includes/Article.php index 99f21d9de2..9e2c9d064b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -337,7 +337,8 @@ class Article { # TODO } } - $lastid = $oldid; + # unused: + # $lastid = $oldid; } if ( !$oldid ) { $oldid = 0; diff --git a/maintenance/rebuildInterwiki.inc b/maintenance/rebuildInterwiki.inc index fea5f646e8..d719fd4010 100644 --- a/maintenance/rebuildInterwiki.inc +++ b/maintenance/rebuildInterwiki.inc @@ -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 diff --git a/maintenance/refreshLinks.inc b/maintenance/refreshLinks.inc index fb513ad773..4780d8e3d8 100644 --- a/maintenance/refreshLinks.inc +++ b/maintenance/refreshLinks.inc @@ -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 ); -- 2.20.1