Stop stubbing $wgLang and $wgContLang. There are no major code paths which do not...
authorHappy-melon <happy-melon@users.mediawiki.org>
Sat, 23 Apr 2011 15:19:38 +0000 (15:19 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sat, 23 Apr 2011 15:19:38 +0000 (15:19 +0000)
commitc80535ae10c7c15b4cbdecd5bad78431fd197ed9
tree78dae5b2555d6eb84e3dbe260c4cc486fc91fe5e
parentc28ffe91c1d368fa46775c8b8776b8d906e14571
Stop stubbing $wgLang and $wgContLang.  There are no major code paths which do not call either $wgLang or $wgContLang at least once.  All index.php calls unstub $wgContLang from MediaWiki::parseTitle() except in the edgecase of viewing pages referenced only by "curid=123", and since those will end up calling OutputPage::output() they will eventually be unstubbed at some point as well.  All calls through load.php unstub $wgLang in ResourceLoaderContext::getLanguage() from ResouceLoader::respond() --> ResourceLoader::preloadModuleInfo().  All calls through api.php unstub $wgContLang in ApiResult::cleanUpUTF8() from ApiMain::printResult().
includes/Message.php
includes/Setup.php
includes/StubObject.php
languages/Language.php
tests/parser/parserTest.inc
tests/phpunit/includes/ArticleTablesTest.php
tests/phpunit/includes/ParserOptionsTest.php
tests/phpunit/includes/parser/NewParserTest.php
tests/phpunit/suites/UploadFromUrlTestSuite.php