Index: trunk/extensions/CentralAuth/maintenance/migratePass0.php |
— | — | @@ -4,7 +4,11 @@ |
5 | 5 | // * generate 'globalnames' and 'localnames' entries for each user on each wiki |
6 | 6 | // --> enable |
7 | 7 | |
8 | | -require dirname( __FILE__ ) . '/../../maintenance/commandLine.inc'; |
| 8 | +$IP = getenv( 'MW_INSTALL_PATH' ); |
| 9 | +if ( $IP === false ) { |
| 10 | + $IP = dirname( __FILE__ ) . '/../../..'; |
| 11 | +} |
| 12 | +requir_once( "$IP/maintenance/commandLine.inc" ); |
9 | 13 | |
10 | 14 | /** |
11 | 15 | * Copy user data for this wiki into the localuser table |
Index: trunk/extensions/CentralAuth/maintenance/migratePass1.php |
— | — | @@ -4,7 +4,11 @@ |
5 | 5 | // * go through all usernames in 'globalnames' and for those |
6 | 6 | // that can be automatically migrated, go ahead and do it. |
7 | 7 | |
8 | | -require dirname( __FILE__ ) . '/../../maintenance/commandLine.inc'; |
| 8 | +$IP = getenv( 'MW_INSTALL_PATH' ); |
| 9 | +if ( $IP === false ) { |
| 10 | + $IP = dirname( __FILE__ ) . '/../../..'; |
| 11 | +} |
| 12 | +requir_once( "$IP/maintenance/commandLine.inc" ); |
9 | 13 | |
10 | 14 | function migratePassOne() { |
11 | 15 | $migrated = 0; |
Index: trunk/extensions/CentralAuth/maintenance/migrateStewards.php |
— | — | @@ -1,6 +1,10 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -require dirname( __FILE__ ) . '/../../maintenance/commandLine.inc'; |
| 4 | +$IP = getenv( 'MW_INSTALL_PATH' ); |
| 5 | +if ( $IP === false ) { |
| 6 | + $IP = dirname( __FILE__ ) . '/../../..'; |
| 7 | +} |
| 8 | +requir_once( "$IP/maintenance/commandLine.inc" ); |
5 | 9 | |
6 | 10 | echo "Populating global groups table with stewards...\n"; |
7 | 11 | |