mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Maintenance script: Update header
This is a much simpler pattern and more consistent with other extensions. Change-Id: Ia8b31ff0573287325eeb5a878a1eb36bbf6374af
This commit is contained in:
parent
86d1f2a35b
commit
3d3972e972
|
@ -1,12 +1,9 @@
|
|||
<?php
|
||||
|
||||
$path = __DIR__ . '/../../..';
|
||||
|
||||
if ( getenv( 'MW_INSTALL_PATH' ) !== false ) {
|
||||
$path = getenv( 'MW_INSTALL_PATH' );
|
||||
$IP = getenv( 'MW_INSTALL_PATH' );
|
||||
if ( $IP === false ) {
|
||||
$IP = __DIR__ . '/../../..';
|
||||
}
|
||||
|
||||
require_once( $path . '/maintenance/Maintenance.php' );
|
||||
require_once( $IP . '/maintenance/Maintenance.php' );
|
||||
|
||||
class MakeStaticLoader extends Maintenance {
|
||||
|
||||
|
|
Loading…
Reference in a new issue