User: Allow newSystemUser() to create over anonymous actors
[lhc/web/wiklou.git] / includes / installer / Installer.php
index 091f93b..dcf0551 100644 (file)
@@ -1771,7 +1771,7 @@ abstract class Installer {
                                '',
                                EDIT_NEW,
                                false,
-                               User::newFromName( 'MediaWiki default' )
+                               User::newSystemUser( 'MediaWiki default' )
                        );
                } catch ( Exception $e ) {
                        // using raw, because $wgShowExceptionDetails can not be set yet
@@ -1823,6 +1823,10 @@ abstract class Installer {
 
                // Don't try to use any object cache for SessionManager either.
                $GLOBALS['wgSessionCacheType'] = CACHE_NONE;
+
+               // Set a dummy $wgServer to bypass the check in Setup.php, the
+               // web installer will automatically detect it and not use this value.
+               $GLOBALS['wgServer'] = 'https://🌻.invalid';
        }
 
        /**