In Installer, set the user to an anon in RequestContext, not just wgUser
[lhc/web/wiklou.git] / includes / installer / Installer.php
index e61e2d2..ca1d8a3 100644 (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;