Remove unused globals.
authorPlatonides <platonides@users.mediawiki.org>
Sun, 31 Oct 2010 15:35:01 +0000 (15:35 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 31 Oct 2010 15:35:01 +0000 (15:35 +0000)
includes/Title.php
includes/Wiki.php
includes/resourceloader/ResourceLoaderFileModule.php
includes/specials/SpecialUserlogin.php

index 517fdea..cec0067 100644 (file)
@@ -863,7 +863,7 @@ class Title {
         */
        public function getLocalURL( $query = '', $variant = false ) {
                global $wgArticlePath, $wgScript, $wgServer, $wgRequest;
-               global $wgVariantArticlePath, $wgContLang, $wgUser;
+               global $wgVariantArticlePath, $wgContLang;
 
                if ( is_array( $query ) ) {
                        $query = wfArrayToCGI( $query );
index 7845f8f..aaced48 100644 (file)
@@ -179,7 +179,7 @@ class MediaWiki {
         */
        function handleSpecialCases( &$title, &$output, $request ) {
                wfProfileIn( __METHOD__ );
-               global $wgContLang, $wgUser;
+
                $action = $this->getVal( 'Action' );
 
                // Invalid titles. Bug 21776: The interwikis must redirect even if the page name is empty.
index c3d53a8..81c0f42 100644 (file)
@@ -187,7 +187,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
         * @return {string} JavaScript code for $context
         */
        public function getScript( ResourceLoaderContext $context ) {
-               global $wgServer, $wgScriptPath;
+               global $wgServer;
                
                $files = array_merge(
                        $this->scripts,
@@ -432,9 +432,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
         * @param {string} $path File path of script file to read
         * @return {string} CSS data in script file
         */
-       protected function readStyleFile( $path ) {
-               global $wgScriptPath;
-               
+       protected function readStyleFile( $path ) {     
                $style = file_get_contents( $this->getLocalPath( $path ) );
                $dir = $this->getLocalPath( dirname( $path ) );
                $remoteDir = $this->getRemotePath( dirname( $path ) );
index 7561ee2..210e2d1 100644 (file)
@@ -947,7 +947,7 @@ class LoginForm {
                global $wgUser, $wgOut, $wgHiddenPrefs, $wgEnableEmail;
                global $wgRequest, $wgLoginLanguageSelector;
                global $wgAuth, $wgEmailConfirmToEdit, $wgCookieExpiration;
-               global $wgSecureLogin, $wgSecureLoginStickHTTPS;
+               global $wgSecureLogin;
 
                $titleObj = SpecialPage::getTitleFor( 'Userlogin' );