Index: trunk/extensions/GlobalUsage/refreshGlobalimagelinks.php |
— | — | @@ -1,6 +1,12 @@ |
2 | 2 | <?php |
3 | | -require_once( '../../maintenance/Maintenance.php' ); |
| 3 | +$path = '../..'; |
4 | 4 | |
| 5 | +if ( getenv('MW_INSTALL_PATH') !== false ) { |
| 6 | + $path = getenv('MW_INSTALL_PATH'); |
| 7 | +} |
| 8 | + |
| 9 | +require_once( $path.'/maintenance/Maintenance.php' ); |
| 10 | + |
5 | 11 | class RefreshGlobalImageLinks extends Maintenance { |
6 | 12 | public function __construct() { |
7 | 13 | parent::__construct(); |