]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18112 making the php version error less harsh - now displayed only if php < 5...
authorskodak <skodak>
Mon, 2 Feb 2009 19:59:53 +0000 (19:59 +0000)
committerskodak <skodak>
Mon, 2 Feb 2009 19:59:53 +0000 (19:59 +0000)
admin/index.php

index c6a0c7d736d7c7bb1fe9a001f2e6d059394e31d4..fbe01e2842b985aafee45c2e624a9f647e7cf0dd 100644 (file)
@@ -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;
     }