show SQL errors in command line scripts
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 28 Sep 2006 09:04:39 +0000 (09:04 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 28 Sep 2006 09:04:39 +0000 (09:04 +0000)
maintenance/commandLine.inc

index 93edce1..2549057 100644 (file)
@@ -132,6 +132,7 @@ if ( file_exists( '/home/wikipedia/common/langlist' ) ) {
        # This is for the IRC scripts, which now run as the apache user
        # The apache user doesn't have access to the wikiadmin_pass command
        if ( $_ENV['USER'] == 'apache' ) {
+       #if ( posix_geteuid() == 48 ) {
                $wgUseNormalUser = true;
        }
 
@@ -201,6 +202,8 @@ if ( defined( 'MW_CMDLINE_CALLBACK' ) ) {
 
 ini_set( 'memory_limit', -1 );
 
+$wgShowSQLErrors = true;
+
 require_once( 'Setup.php' );
 require_once( 'install-utils.inc' );
 $wgTitle = null; # Much much faster startup than creating a title object