From 59ed4015b163fff94280ef043bc2856a0ff61287 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 24 Jul 2010 20:12:33 +0000 Subject: [PATCH] Remove unused globals --- skins/CologneBlue.php | 4 ++-- skins/Modern.php | 4 +--- skins/Nostalgia.php | 2 +- skins/Standard.php | 1 - skins/Vector.php | 4 ++-- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index 1bbbfc233e..c7df144f83 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -131,7 +131,7 @@ class SkinCologneBlue extends Skin { } function sysLinks() { - global $wgUser, $wgLang, $wgContLang; + global $wgUser, $wgLang; $li = SpecialPage::getTitleFor( 'Userlogin' ); $lo = SpecialPage::getTitleFor( 'Userlogout' ); @@ -190,7 +190,7 @@ class SkinCologneBlue extends Skin { * @access private */ function quickBar(){ - global $wgOut, $wgUser, $wgEnableUploads; + global $wgOut, $wgUser; $tns = $this->mTitle->getNamespace(); diff --git a/skins/Modern.php b/skins/Modern.php index ecfa231a9c..899c53e27f 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -31,8 +31,6 @@ class SkinModern extends SkinTemplate { } function setupSkinUserCss( OutputPage $out ){ - global $wgStyleVersion, $wgJsMimeType, $wgStylePath; - // Do not call parent::setupSkinUserCss(), we have our own print style $out->addStyle( 'common/shared.css', 'screen' ); $out->addStyle( 'modern/main.css', 'screen' ); @@ -56,7 +54,7 @@ class ModernTemplate extends MonoBookTemplate { * @access private */ function execute() { - global $wgRequest, $wgOut; + global $wgRequest; $this->skin = $skin = $this->data['skin']; $action = $wgRequest->getText( 'action' ); diff --git a/skins/Nostalgia.php b/skins/Nostalgia.php index eee18dba74..1e4f3cdc8e 100644 --- a/skins/Nostalgia.php +++ b/skins/Nostalgia.php @@ -57,7 +57,7 @@ class SkinNostalgia extends Skin { } function topLinks() { - global $wgOut, $wgUser, $wgEnableUploads; + global $wgOut, $wgUser; $sep = " |\n"; $s = $this->mainPageLink() . $sep diff --git a/skins/Standard.php b/skins/Standard.php index acb9c09777..8bd1f8f7c1 100644 --- a/skins/Standard.php +++ b/skins/Standard.php @@ -103,7 +103,6 @@ class SkinStandard extends Skin { function quickBar() { global $wgOut, $wgUser, $wgRequest, $wgContLang; - global $wgEnableUploads, $wgRemoteUploads; wfProfileIn( __METHOD__ ); diff --git a/skins/Vector.php b/skins/Vector.php index 496f872fd6..6ce5b9a60c 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -367,7 +367,7 @@ class VectorTemplate extends QuickTemplate { * Outputs the entire contents of the XHTML page */ public function execute() { - global $wgRequest, $wgOut, $wgContLang; + global $wgRequest, $wgContLang; $this->skin = $this->data['skin']; $action = $wgRequest->getText( 'action' ); @@ -675,7 +675,7 @@ class VectorTemplate extends QuickTemplate { * when UI is in RTL mode */ private function renderNavigation( $elements ) { - global $wgContLang, $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgUser; + global $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgUser; // If only one element was given, wrap it in an array, allowing more // flexible arguments -- 2.20.1