resourceloader: Avoid Title::newMainPage() to support $wgForceUIMsgAsContentMsg
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 29 Mar 2016 18:15:12 +0000 (14:15 -0400)
committerKrinkle <krinklemail@gmail.com>
Fri, 1 Apr 2016 23:37:09 +0000 (23:37 +0000)
commit67984c30d63b1b0dc7d7b84e84f1810b584685c7
treeea85a69acb5dd219a2759780b33c9d6d143b80c6
parent6906de45c1d5edc38a14e9cbbed6337960b1ff0d
resourceloader: Avoid Title::newMainPage() to support $wgForceUIMsgAsContentMsg

$wgForceUIMsgAsContentMsg forces Message::inContentLanguage() to not
actually do anything, thus falling back to the session user's language
which we can't use in ResourceLoader. And 'mainpage' is added to that
array on various multi-lingual wikis.

Bug: T127233
Change-Id: I9dc1e57922641881b36c70658083c2c8c8a608a0
includes/resourceloader/ResourceLoaderStartUpModule.php