X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Finstall.php;h=b948b67494d4c202c14a8c9550b06a997843f31f;hb=c1bf30c2e55a7bae04b3c5e232f5017ed79bbd80;hp=9a73f2e014b0fb052b5ff251b0c3652fc03f69a9;hpb=825f0701d8096bbc926ec6c2d0027f0100a398e9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/install.php b/maintenance/install.php index 9a73f2e014..b948b67494 100644 --- a/maintenance/install.php +++ b/maintenance/install.php @@ -21,16 +21,13 @@ * @ingroup Maintenance */ -if ( !function_exists( 'version_compare' ) || ( version_compare( PHP_VERSION, '5.3.2' ) < 0 ) ) { - require_once dirname( __FILE__ ) . '/../includes/PHPVersionError.php'; - wfPHPVersionError( 'cli' ); -} +// Checking for old versions of PHP is done in Maintenance.php +// We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+ +require_once dirname( __FILE__ ) . '/Maintenance.php'; define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' ); define( 'MEDIAWIKI_INSTALL', true ); -require_once dirname( __DIR__ ) . '/maintenance/Maintenance.php'; - /** * Maintenance script to install and configure MediaWiki *