Index: trunk/extensions/AntiSpoof/batchAntiSpoof.php |
— | — | @@ -1,8 +1,9 @@ |
2 | 2 | <?php |
3 | 3 | // Go through all usernames and calculate and record spoof thingies |
4 | 4 | |
5 | | -$base = dirname( dirname( dirname( __FILE__ ) ) ); |
6 | | -require $base . '/maintenance/commandLine.inc'; |
| 5 | +require_once ( getenv( 'MW_INSTALL_PATH' ) !== false |
| 6 | + ? getenv( 'MW_INSTALL_PATH' ) . "/maintenance/commandLine.inc" |
| 7 | + : dirname( __FILE__ ) . '/../../maintenance/commandLine.inc' ); |
7 | 8 | |
8 | 9 | $dbw = wfGetDB( DB_MASTER ); |
9 | 10 | |