From 54df8722ea66d27c713dd0a4416b8621f7c645e5 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 16 Mar 2011 23:49:14 +0000 Subject: [PATCH] Fix r84131, Installer classes not initialised/in usage, so we can't do this. Change for hardcoded 5.2.3 as current minimum version --- maintenance/Maintenance.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 9c10547b3a..75d983c5f0 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -27,10 +27,10 @@ define( 'DO_MAINTENANCE', RUN_MAINTENANCE_IF_MAIN ); // original name, harmless $maintClass = false; // Make sure we're on PHP5 or better -if ( version_compare( PHP_VERSION, Installer::MINIMUM_PHP_VERSION ) < 0 ) { - die ( "Sorry! This version of MediaWiki requires PHP " . Installer::MINIMUM_PHP_VERSION . "; you are running " . +if ( version_compare( PHP_VERSION, '5.2.3' ) < 0 ) { + die ( "Sorry! This version of MediaWiki requires PHP 5.2.3; you are running " . PHP_VERSION . ".\n\n" . - "If you are sure you already have PHP " . Installer::MINIMUM_PHP_VERSION . " or higher installed, it may be\n" . + "If you are sure you already have PHP 5.2.3 or higher installed, it may be\n" . "installed in a different path from PHP " . PHP_VERSION . ". Check with your system\n" . "administrator.\n" ); } -- 2.20.1