Index: trunk/extensions/Maps/test/commandLine.inc |
— | — | @@ -12,13 +12,16 @@ |
13 | 13 | if ( getenv( 'MW_INSTALL_PATH' ) !== false ) { |
14 | 14 | $IP = getenv( 'MW_INSTALL_PATH' ); |
15 | 15 | } else { |
| 16 | + $IP = false; |
16 | 17 | foreach( array( '../../../phase3', '../../../smw' ) as $rel ) { |
17 | 18 | if ( file_exists( dirname( __FILE__ ) . "/$rel/maintenance/commandLine.inc" ) ) { |
18 | 19 | $IP = dirname( __FILE__ ) . "/$rel"; |
19 | 20 | break; |
20 | 21 | } |
21 | 22 | } |
22 | | - die( 'maintenance/commandLine.inc not found' ); |
| 23 | + if ( !$IP ) { |
| 24 | + die( 'maintenance/commandLine.inc not found' ); |
| 25 | + } |
23 | 26 | } |
24 | 27 | require( "$IP/maintenance/commandLine.inc" ); |
25 | 28 | |