From: Tim Starling Date: Wed, 10 Feb 2016 10:17:06 +0000 (+1100) Subject: In Installer, set the user to an anon in RequestContext, not just wgUser X-Git-Tag: 1.31.0-rc.0~8028^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=2676e7fc3bdcd6b10deb9a499593f085cd683368;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index e61e2d2509..ca1d8a3e94 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -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;