Remove unused globals
authorSam Reed <reedy@users.mediawiki.org>
Sat, 24 Jul 2010 20:12:33 +0000 (20:12 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 24 Jul 2010 20:12:33 +0000 (20:12 +0000)
skins/CologneBlue.php
skins/Modern.php
skins/Nostalgia.php
skins/Standard.php
skins/Vector.php

index 1bbbfc2..c7df144 100644 (file)
@@ -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();
 
index ecfa231..899c53e 100644 (file)
@@ -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' );
 
index eee18db..1e4f3cd 100644 (file)
@@ -57,7 +57,7 @@ class SkinNostalgia extends Skin {
        }
 
        function topLinks() {
-               global $wgOut, $wgUser, $wgEnableUploads;
+               global $wgOut, $wgUser;
                $sep = " |\n";
 
                $s = $this->mainPageLink() . $sep
index acb9c09..8bd1f8f 100644 (file)
@@ -103,7 +103,6 @@ class SkinStandard extends Skin {
 
        function quickBar() {
                global $wgOut, $wgUser, $wgRequest, $wgContLang;
-               global $wgEnableUploads, $wgRemoteUploads;
 
                wfProfileIn( __METHOD__ );
 
index 496f872..6ce5b9a 100644 (file)
@@ -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