http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72373
Revision: 72373
Author: platonides
Date: 2010-09-04 13:27:12 +0000 (Sat, 04 Sep 2010)
Log Message:
-----------
Follow-up r72349.
Remove unused globals $wgStylePath, $wgStyleVersion, $wgUser and the no longer
used $wgJQueryOnEveryPage.
Modified Paths:
--------------
trunk/phase3/includes/ChangesList.php
trunk/phase3/includes/HTMLForm.php
trunk/phase3/includes/MessageCache.php
trunk/phase3/includes/OutputPage.php
trunk/phase3/includes/ResourceLoaderContext.php
trunk/phase3/includes/diff/DifferenceInterface.php
trunk/phase3/includes/specials/SpecialBlockip.php
Modified: trunk/phase3/includes/ChangesList.php
===================================================================
--- trunk/phase3/includes/ChangesList.php 2010-09-04 12:53:01 UTC (rev
72372)
+++ trunk/phase3/includes/ChangesList.php 2010-09-04 13:27:12 UTC (rev
72373)
@@ -601,7 +601,7 @@
* @return String
*/
public function beginRecentChangesList() {
- global $wgStylePath, $wgStyleVersion, $wgOut;
+ global $wgOut;
$this->rc_cache = array();
$this->rcMoveIndex = 0;
$this->rcCacheIndex = 0;
Modified: trunk/phase3/includes/HTMLForm.php
===================================================================
--- trunk/phase3/includes/HTMLForm.php 2010-09-04 12:53:01 UTC (rev 72372)
+++ trunk/phase3/includes/HTMLForm.php 2010-09-04 13:27:12 UTC (rev 72373)
@@ -156,7 +156,7 @@
static function addJS() {
if ( self::$jsAdded ) return;
- global $wgOut, $wgStylePath;
+ global $wgOut;
$wgOut->addModules( 'mediawiki.legacy.htmlform' );
}
Modified: trunk/phase3/includes/MessageCache.php
===================================================================
--- trunk/phase3/includes/MessageCache.php 2010-09-04 12:53:01 UTC (rev
72372)
+++ trunk/phase3/includes/MessageCache.php 2010-09-04 13:27:12 UTC (rev
72373)
@@ -750,6 +750,7 @@
# Invalidate all local caches
$this->mMemc->delete( wfMemcKey( 'messages', $code,
'hash' ) );
}
+ $this->mLoadedLanguages = array();
}
/**
@@ -811,7 +812,7 @@
}
public function figureMessage( $key ) {
- global $wgContLanguageCode, $wgContLang;
+ global $wgContLanguageCode;
$pieces = explode( '/', $key );
if( count( $pieces ) < 2 )
return array( $key, $wgContLanguageCode );
Modified: trunk/phase3/includes/OutputPage.php
===================================================================
--- trunk/phase3/includes/OutputPage.php 2010-09-04 12:53:01 UTC (rev
72372)
+++ trunk/phase3/includes/OutputPage.php 2010-09-04 13:27:12 UTC (rev
72373)
@@ -1565,7 +1565,7 @@
global $wgContLanguageCode, $wgDebugRedirects, $wgMimeType;
global $wgUseAjax, $wgAjaxWatch;
global $wgEnableMWSuggest, $wgUniversalEditButton;
- global $wgArticle, $wgJQueryOnEveryPage;
+ global $wgArticle;
if( $this->mDoNothing ) {
return;
@@ -2301,7 +2301,7 @@
*/
function getHeadScripts( Skin $sk ) {
global $wgUser, $wgRequest, $wgJsMimeType;
- global $wgStylePath, $wgStyleVersion, $wgUseSiteJs;
+ global $wgUseSiteJs;
// Statup - this will immediately load jquery and mediawiki
modules
$scripts = self::makeResourceLoaderLink( $sk, 'startup',
'scripts' );
Modified: trunk/phase3/includes/ResourceLoaderContext.php
===================================================================
--- trunk/phase3/includes/ResourceLoaderContext.php 2010-09-04 12:53:01 UTC
(rev 72372)
+++ trunk/phase3/includes/ResourceLoaderContext.php 2010-09-04 13:27:12 UTC
(rev 72373)
@@ -38,7 +38,7 @@
/* Methods */
public function __construct( WebRequest $request, $server ) {
- global $wgUser, $wgLang, $wgDefaultSkin;
+ global $wgLang, $wgDefaultSkin;
$this->request = $request;
$this->server = $server;
Modified: trunk/phase3/includes/diff/DifferenceInterface.php
===================================================================
--- trunk/phase3/includes/diff/DifferenceInterface.php 2010-09-04 12:53:01 UTC
(rev 72372)
+++ trunk/phase3/includes/diff/DifferenceInterface.php 2010-09-04 13:27:12 UTC
(rev 72373)
@@ -579,7 +579,7 @@
* Add style sheets and supporting JS for diff display.
*/
function showDiffStyle() {
- global $wgStylePath, $wgStyleVersion, $wgOut;
+ global $wgOut;
$wgOut->addModules( 'mediawiki.legacy.diff' );
}
Modified: trunk/phase3/includes/specials/SpecialBlockip.php
===================================================================
--- trunk/phase3/includes/specials/SpecialBlockip.php 2010-09-04 12:53:01 UTC
(rev 72372)
+++ trunk/phase3/includes/specials/SpecialBlockip.php 2010-09-04 13:27:12 UTC
(rev 72373)
@@ -195,7 +195,6 @@
wfMsgForContent( 'ipbreason-dropdown' ),
wfMsgForContent( 'ipbreasonotherlist' ),
$this->BlockReasonList, 'wpBlockDropDown', 4 );
- global $wgStylePath, $wgStyleVersion;
$wgOut->addModules( 'mediawiki.legacy.block' );
$wgOut->addHTML(
Xml::openElement( 'form', array( 'method' => 'post',
'action' => $titleObj->getLocalURL( 'action=submit' ), 'id' => 'blockip' ) ) .
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs