Set WebInstaller session variables as globals
authorGergő Tisza <tgr.huwiki@gmail.com>
Tue, 20 Mar 2018 01:35:43 +0000 (18:35 -0700)
committerGergő Tisza <tgr.huwiki@gmail.com>
Tue, 20 Mar 2018 01:39:00 +0000 (18:39 -0700)
commit3b076177b4d862412d47cc7625d38c7c7c69acfe
treecc4cae26fd5fcb689e503c94927cd7d061198a08
parent3577973107e642493a58d2a6580a99d3dff0137b
Set WebInstaller session variables as globals

During the install process LocalSettings.php does not exist
yet so globals simply take their values from DefaultSettings.php.
The installer uses the correct settings directly for e.g. database
operations, but this blows up when something tries to use
MediaWikiServices which is hardcoded to work with globals.

Make the installer update the globals to work around this.

Bug: T187586
Change-Id: I042099c399bc58929e83178f61e6e6ca478a3ee6
includes/installer/WebInstaller.php