From: Chad Horohoe Date: Thu, 7 May 2009 20:30:55 +0000 (+0000) Subject: Followup to r50316: Fix inclusion of profiler in maintenance scripts. X-Git-Tag: 1.31.0-rc.0~41847 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=efc95a66bbfe650aa218a789f0796371f8697b71;p=lhc%2Fweb%2Fwiklou.git Followup to r50316: Fix inclusion of profiler in maintenance scripts. --- diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index e83a19160a..8ccb72beec 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -44,7 +44,9 @@ $IP = strval( getenv('MW_INSTALL_PATH') ) !== '' ? getenv('MW_INSTALL_PATH') : realpath( dirname( __FILE__ ) . '/..' ); #chdir( $IP ); -require_once( "$IP/StartProfiler.php" ); +if ( file_exists( "$IP/StartProfiler.php" ) ) { + require_once( "$IP/StartProfiler.php" ); +} $options = array(); $args = array();