Index: trunk/extensions/BotQuery/query.php |
— | — | @@ -22,7 +22,10 @@ |
23 | 23 | */ |
24 | 24 | |
25 | 25 | $startTime = microtime(true); |
26 | | -$IP = dirname( realpath( __FILE__ ) ) . '/../..'; |
| 26 | +$IP = getenv( 'MW_INSTALL_PATH' ); |
| 27 | +if ( $IP === false ) { |
| 28 | + $IP = dirname( realpath( __FILE__ ) ) . '/../..'; |
| 29 | +} |
27 | 30 | chdir( $IP ); |
28 | 31 | |
29 | 32 | // Allow requests to go to an alternative site (proxying) |