r73383 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73382‎ | r73383 | r73384 >
Date:15:41, 20 September 2010
Author:platonides
Status:deferred
Tags:
Comment:
Fix r73381.
Modified paths:
  • /trunk/extensions/Maps/test/commandLine.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/test/commandLine.inc
@@ -12,13 +12,16 @@
1313 if ( getenv( 'MW_INSTALL_PATH' ) !== false ) {
1414 $IP = getenv( 'MW_INSTALL_PATH' );
1515 } else {
 16+ $IP = false;
1617 foreach( array( '../../../phase3', '../../../smw' ) as $rel ) {
1718 if ( file_exists( dirname( __FILE__ ) . "/$rel/maintenance/commandLine.inc" ) ) {
1819 $IP = dirname( __FILE__ ) . "/$rel";
1920 break;
2021 }
2122 }
22 - die( 'maintenance/commandLine.inc not found' );
 23+ if ( !$IP ) {
 24+ die( 'maintenance/commandLine.inc not found' );
 25+ }
2326 }
2427 require( "$IP/maintenance/commandLine.inc" );
2528

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73381Follow up r72799, using MW_INSTALL_PATH and moving the logic to find maintena...platonides15:38, 20 September 2010

Status & tagging log