From b29f4b2f840134c696b4ee5410514320aebd8fb0 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 28 Sep 2006 09:04:39 +0000 Subject: [PATCH] show SQL errors in command line scripts --- maintenance/commandLine.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index 93edce12e7..2549057e41 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -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 -- 2.20.1