http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84656
Revision: 84656
Author: reedy
Date: 2011-03-24 00:48:22 +0000 (Thu, 24 Mar 2011)
Log Message:
-----------
Adding some type documentation to some well used globals
Modified Paths:
--------------
trunk/phase3/includes/DefaultSettings.php
trunk/phase3/includes/Setup.php
Modified: trunk/phase3/includes/DefaultSettings.php
===================================================================
--- trunk/phase3/includes/DefaultSettings.php 2011-03-24 00:46:04 UTC (rev
84655)
+++ trunk/phase3/includes/DefaultSettings.php 2011-03-24 00:48:22 UTC (rev
84656)
@@ -4618,6 +4618,7 @@
/**
* Authentication plugin.
+ * @var AuthPlugin
*/
$wgAuth = null;
Modified: trunk/phase3/includes/Setup.php
===================================================================
--- trunk/phase3/includes/Setup.php 2011-03-24 00:46:04 UTC (rev 84655)
+++ trunk/phase3/includes/Setup.php 2011-03-24 00:48:22 UTC (rev 84656)
@@ -366,8 +366,20 @@
// Now that variant lists may be available...
$wgRequest->interpolateTitle();
$wgUser = $wgCommandLineMode ? new User : User::newFromSession();
+
+/**
+ * @var Language
+ */
$wgLang = new StubUserLang;
+
+/**
+ * @var OutputPage
+ */
$wgOut = new StubObject( 'wgOut', 'OutputPage' );
+
+/**
+ * @var Parser
+ */
$wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array(
$wgParserConf ) );
if ( !is_object( $wgAuth ) ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs