From: skodak Date: Mon, 2 Feb 2009 19:59:53 +0000 (+0000) Subject: MDL-18112 making the php version error less harsh - now displayed only if php < 5... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ccba465e78f76a33b93ab46c2bf315085d60959a;p=moodle.git MDL-18112 making the php version error less harsh - now displayed only if php < 5.2.0, versions < 5.2.8 are detected during environment test --- diff --git a/admin/index.php b/admin/index.php index c6a0c7d736..fbe01e2842 100644 --- a/admin/index.php +++ b/admin/index.php @@ -6,11 +6,12 @@ die; } -/// Check that PHP is of a sufficient version -/// Moved here because older versions do not allow while(@ob_end_clean()); - if (version_compare(phpversion(), "5.2.8") < 0) { +/// Check that PHP is of a sufficient version as soon as possible + if (version_compare(phpversion(), "5.2.0") < 0) { $phpversion = phpversion(); - echo "Sorry, Moodle requires PHP 5.2.8 or later (currently using version $phpversion)"; + // do NOT localise - lang strings would not work here and we CAN not move it to later palce + echo "Sorry, Moodle 2.0 requires PHP 5.2.8 or later (currently using version $phpversion). "; + echo "Please upgrade your server software or use latest Moodle 1.9.x instead."; die; }