Single messages can be passed as strings to Api::dieUsageMsg()
[lhc/web/wiklou.git] / maintenance / install.php
index a1ac9f0..57e669d 100644 (file)
  * @see wfWaitForSlaves()
  */
 
-// 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";
+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" .
+       "Check if you have a newer php executable with a different name, such as php5.\n";
        die( 1 );
 }