Make the global objects documentation consistent in Setup.php
Change-Id: I7ba179ea2202586854194c4f20f403ed9fd60aa3
This commit is contained in:
parent
3000943df0
commit
07795699fb
1 changed files with 13 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue