From 07795699fbc3527ced007f66d5d69f03f615cd97 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 1 Apr 2014 21:03:00 +0200 Subject: [PATCH] Make the global objects documentation consistent in Setup.php Change-Id: I7ba179ea2202586854194c4f20f403ed9fd60aa3 --- includes/Setup.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/includes/Setup.php b/includes/Setup.php index 51368b1730..70c6d72be9 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -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(); -- 2.20.1