In Installer, set the context language early to avoid loading from User
authorTim Starling <tstarling@wikimedia.org>
Wed, 10 Feb 2016 10:32:38 +0000 (21:32 +1100)
committerTim Starling <tstarling@wikimedia.org>
Wed, 10 Feb 2016 10:44:09 +0000 (21:44 +1100)
commit1714299f7a01ea35ddb8f2e128f7bc1fdc009a32
tree6858c8c28251d68d35287c9b3b962113396bbe2a
parent7a84c29895a58f492f02c0be3432b4418f01c6e2
In Installer, set the context language early to avoid loading from User

Set the context language early, even before the session is loaded, to
avoid attempting to call User::loadFromSession(). Also update the things
that set $wgLang to also set it in RequestContext.

Passing $wgUser through to the ParserOptions constructor isn't strictly
necessary right now, but it does at least show the intended data flow
and is more robust to future changes in the way the language is passed
through to ParserOptions.

Fixes bug T126177 independently of my other two patches.

Bug: T126177
Change-Id: I15eb9cdce7805382d96b6fc6ffb9b25855876417
includes/installer/CliInstaller.php
includes/installer/Installer.php
mw-config/index.php