X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=mw-config%2Findex.php;h=be811dc980cf0240f31c171e0c99fe0b3db8f624;hb=78c47763ab93a9f7680d304c99e89c15c2a353a4;hp=a6cebc3951645902ccd11ceff354dcfe9be0429b;hpb=25b73462a10fa359e917926cab49bf9bc5575ee5;p=lhc%2Fweb%2Fwiklou.git diff --git a/mw-config/index.php b/mw-config/index.php index a6cebc3951..be811dc980 100644 --- a/mw-config/index.php +++ b/mw-config/index.php @@ -20,12 +20,10 @@ * @file */ -// Bail if PHP is too low -if ( !function_exists( 'version_compare' ) || version_compare( PHP_VERSION, '5.3.2' ) < 0 ) { - // We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+ - require dirname( dirname( __FILE__ ) ) . '/includes/PHPVersionError.php'; - wfPHPVersionError( 'mw-config/index.php' ); -} +// Bail on old versions of PHP, or if composer has not been run yet to install +// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+. +require_once dirname( __FILE__ ) . '/../includes/PHPVersionCheck.php'; +wfEntryPointCheck( 'mw-config/index.php' ); define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' ); define( 'MEDIAWIKI_INSTALL', true );