Followup to r50316: Fix inclusion of profiler in maintenance scripts.
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 7 May 2009 20:30:55 +0000 (20:30 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 7 May 2009 20:30:55 +0000 (20:30 +0000)
maintenance/commandLine.inc

index e83a191..8ccb72b 100644 (file)
@@ -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();