Make the global objects documentation consistent in Setup.php

Change-Id: I7ba179ea2202586854194c4f20f403ed9fd60aa3
This commit is contained in:
Alexandre Emsenhuber 2014-04-01 21:03:00 +02:00 committed by IAlex
parent 3000943df0
commit 07795699fb

View file

@ -568,26 +568,33 @@ if ( !defined( 'MW_NO_SESSION' ) && !$wgCommandLineMode &&
wfProfileOut( $fname . '-session' );
wfProfileIn( $fname . '-globals' );
/**
* @var Language $wgContLang
*/
$wgContLang = Language::factory( $wgLanguageCode );
$wgContLang->initEncoding();
$wgContLang->initContLang();
// Now that variant lists may be available...
$wgRequest->interpolateTitle();
/**
* @var User $wgUser
*/
$wgUser = RequestContext::getMain()->getUser(); // BackCompat
/**
* @var $wgLang Language
* @var Language $wgLang
*/
$wgLang = new StubUserLang;
/**
* @var OutputPage
* @var OutputPage $wgOut
*/
$wgOut = RequestContext::getMain()->getOutput(); // BackCompat
/**
* @var $wgParser Parser
* @var Parser $wgParser
*/
$wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) );
@ -596,7 +603,9 @@ if ( !is_object( $wgAuth ) ) {
wfRunHooks( 'AuthPluginSetup', array( &$wgAuth ) );
}
# Placeholders in case of DB error
/**
* @var Title $wgTitle
*/
$wgTitle = null;
$wgDeferredUpdateList = array();