We're stating CommandLineMode is true, but Exception.php won't know what STDERR is.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 10 Feb 2008 13:33:36 +0000 (13:33 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 10 Feb 2008 13:33:36 +0000 (13:33 +0000)
config/index.php

index 292fd85..9a9000d 100644 (file)
@@ -753,6 +753,8 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                $wgDBts2schema = $conf->DBts2schema;
 
                $wgCommandLineMode = true;
+               if (! defined ( 'STDERR' ) )
+                       define( STDERR, fopen("php://stderr", "wb"));
                $wgUseDatabaseMessages = false; /* FIXME: For database failure */
                require_once( "$IP/includes/Setup.php" );
                chdir( "config" );