X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=mw-config%2Findex.php;h=fc7eadb5a48bcccb3a9df5a8cc95dfc76f7b1a47;hb=bb81516af40d25f456980cdf5eedd1e2a3392466;hp=2823210acb63ba6f3333aa89ed4ab7a8c24baa1b;hpb=5e2ac408f888043b3c62a42b5c9c9ece5ddaf419;p=lhc%2Fweb%2Fwiklou.git diff --git a/mw-config/index.php b/mw-config/index.php index 2823210acb..fc7eadb5a4 100644 --- a/mw-config/index.php +++ b/mw-config/index.php @@ -23,12 +23,10 @@ define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' ); define( 'MEDIAWIKI_INSTALL', true ); +// Resolve relative to regular MediaWiki root +// instead of mw-config subdirectory. chdir( dirname( __DIR__ ) ); -if ( isset( $_SERVER['MW_COMPILED'] ) ) { - require ( 'core/includes/WebStart.php' ); -} else { - require( dirname( __DIR__ ) . '/includes/WebStart.php' ); -} +require dirname( __DIR__ ) . '/includes/WebStart.php'; wfInstallerMain();