In Installer, set the user to an anon in RequestContext, not just wgUser

This hack to prevent $wgUser being loaded was apparently not updated
when RequestContext was introduced.

Fixes T126177 independently of I13d8aa1453c

Bug: T126177
Change-Id: Iedceec3044352e433710d97d5c7c81fff1a6a3e5
This commit is contained in:
Tim Starling 2016-02-10 21:17:06 +11:00
parent 7a84c29895
commit 2676e7fc3b

View file

@ -385,6 +385,7 @@ abstract class Installer {
// Having a user with id = 0 safeguards us from DB access via User::loadOptions().
$wgUser = User::newFromId( 0 );
RequestContext::getMain()->setUser( $wgUser );
$this->settings = $this->internalDefaults;