Remove unused globals $wgStylePath, $wgStyleVersion, $wgUser and the no longer used $wgJQueryOnEveryPage.
* @return String
*/
public function beginRecentChangesList() {
- global $wgStylePath, $wgStyleVersion, $wgOut;
+ global $wgOut;
$this->rc_cache = array();
$this->rcMoveIndex = 0;
$this->rcCacheIndex = 0;
static function addJS() {
if ( self::$jsAdded ) return;
- global $wgOut, $wgStylePath;
+ global $wgOut;
$wgOut->addModules( 'mediawiki.legacy.htmlform' );
}
# Invalidate all local caches
$this->mMemc->delete( wfMemcKey( 'messages', $code, 'hash' ) );
}
+ $this->mLoadedLanguages = array();
}
/**
}
public function figureMessage( $key ) {
- global $wgContLanguageCode, $wgContLang;
+ global $wgContLanguageCode;
$pieces = explode( '/', $key );
if( count( $pieces ) < 2 )
return array( $key, $wgContLanguageCode );
global $wgContLanguageCode, $wgDebugRedirects, $wgMimeType;
global $wgUseAjax, $wgAjaxWatch;
global $wgEnableMWSuggest, $wgUniversalEditButton;
- global $wgArticle, $wgJQueryOnEveryPage;
+ global $wgArticle;
if( $this->mDoNothing ) {
return;
*/
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' );
/* Methods */
public function __construct( WebRequest $request, $server ) {
- global $wgUser, $wgLang, $wgDefaultSkin;
+ global $wgLang, $wgDefaultSkin;
$this->request = $request;
$this->server = $server;
* Add style sheets and supporting JS for diff display.
*/
function showDiffStyle() {
- global $wgStylePath, $wgStyleVersion, $wgOut;
+ global $wgOut;
$wgOut->addModules( 'mediawiki.legacy.diff' );
}
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' ) ) .