Remove check for PHP version in install.php
authorwithoutaname <drevitchi@gmail.com>
Sun, 20 Jul 2014 05:13:17 +0000 (22:13 -0700)
committerwithoutaname <drevitchi@gmail.com>
Sun, 20 Jul 2014 18:16:55 +0000 (11:16 -0700)
It's redundant to the check already done in Maintenance.php

Change-Id: I525dc8ac5a9872b82209b1a94bb306568dc0901b

maintenance/install.php

index 3b29452..47114fd 100644 (file)
  * @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
  *