reinstalls in some circumstances (bug 941461)
?>
+<p><i>Please include all of the lines below when reporting installation problems.</i></p>
<h2>Checking environment...</h2>
<ul>
}
$wgBlockCache = new BlockCache( true );
-$wgUser = User::loadFromSession();
+if( $wgCommandLineMode ) {
+ # Used for some maintenance scripts; user session cookies can screw things up
+ # when the database is in an in-between state.
+ $wgUser = new User();
+} else {
+ $wgUser = User::loadFromSession();
+}
$wgDeferredUpdateList = array();
$wgLinkCache = new LinkCache();
$wgMagicWords = array();