Fix line removedfor no explicit reason from r85771
[lhc/web/wiklou.git] / maintenance / update.php
index ede6ebe..9f7b93c 100644 (file)
  * @ingroup Maintenance
  */
 
-if ( !function_exists( 'version_compare' ) || ( version_compare( phpversion(), '5.2.3' ) < 0 ) ) {
-       echo "You are using PHP version " . phpversion() . " but MediaWiki needs PHP 5.2.3 or higher. ABORTING.\n" .
+// Include global constants, including MW_VERSION and MW_MIN_PHP_VERSION
+require_once( dirname( dirname( __FILE__ ) ) . '/includes/Defines.php' );
+
+if ( !function_exists( 'version_compare' ) || ( version_compare( phpversion(), MW_MIN_PHP_VERSION ) < 0 ) ) {
+       echo "You are using PHP version " . phpversion() . " but MediaWiki needs PHP " .
+               MW_MIN_PHP_VERSION . "or higher. ABORTING.\n" .
        "Check if you have a newer php executable with a different name, such as php5.\n";
        die( 1 );
 }