Index: trunk/extensions/WikimediaMaintenance/renameWiki.php |
— | — | @@ -23,7 +23,11 @@ |
24 | 24 | * @ingroup Wikimedia |
25 | 25 | */ |
26 | 26 | |
27 | | -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); |
| 27 | +$IP = getenv( 'MW_INSTALL_PATH' ); |
| 28 | +if ( $IP === false ) { |
| 29 | + $IP = dirname( __FILE__ ) . '/../..'; |
| 30 | +} |
| 31 | +require( "$IP/maintenance/Maintenance.php" ); |
28 | 32 | |
29 | 33 | class RenameWiki extends Maintenance { |
30 | 34 | public function __construct() { |
Index: trunk/extensions/WikimediaMaintenance/addwiki.php |
— | — | @@ -27,7 +27,11 @@ |
28 | 28 | * @ingroup Wikimedia |
29 | 29 | */ |
30 | 30 | |
31 | | -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); |
| 31 | +$IP = getenv( 'MW_INSTALL_PATH' ); |
| 32 | +if ( $IP === false ) { |
| 33 | + $IP = dirname( __FILE__ ) . '/../..'; |
| 34 | +} |
| 35 | +require( "$IP/maintenance/Maintenance.php" ); |
32 | 36 | |
33 | 37 | class AddWiki extends Maintenance { |
34 | 38 | public function __construct() { |
Property changes on: trunk/extensions/WikimediaMaintenance/storage |
___________________________________________________________________ |
Deleted: bugtraq:number |
35 | 39 | - true |
Property changes on: trunk/extensions/WikimediaMaintenance |
___________________________________________________________________ |
Deleted: bugtraq:number |
36 | 40 | - true |