diff options
author | Happy-melon <happy-melon@users.mediawiki.org> | 2011-04-23 15:19:38 +0000 |
---|---|---|
committer | Happy-melon <happy-melon@users.mediawiki.org> | 2011-04-23 15:19:38 +0000 |
commit | c80535ae10c7c15b4cbdecd5bad78431fd197ed9 (patch) | |
tree | 78dae5b2555d6eb84e3dbe260c4cc486fc91fe5e /includes/Message.php | |
parent | c28ffe91c1d368fa46775c8b8776b8d906e14571 (diff) | |
download | mediawikicore-c80535ae10c7c15b4cbdecd5bad78431fd197ed9.tar.gz mediawikicore-c80535ae10c7c15b4cbdecd5bad78431fd197ed9.zip |
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().
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/86775
Diffstat (limited to 'includes/Message.php')
-rw-r--r-- | includes/Message.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Message.php b/includes/Message.php index d4ea091c566f..8097d4382a92 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -208,7 +208,7 @@ class Message { * @return Message: $this */ public function inLanguage( $lang ) { - if ( $lang instanceof Language || $lang instanceof StubContLang || $lang instanceof StubUserLang ) { + if ( $lang instanceof Language ) { $this->language = $lang; } elseif ( is_string( $lang ) ) { if( $this->language->getCode() != $lang ) { |