]> git.mjollnir.org Git - moodle.git/commitdiff
Since the reimplementation of check_php_version will probably never be used, I
authorgregb_cc <gregb_cc>
Tue, 17 Dec 2002 03:04:07 +0000 (03:04 +0000)
committergregb_cc <gregb_cc>
Tue, 17 Dec 2002 03:04:07 +0000 (03:04 +0000)
have removed it.

lib/moodlelib.php

index 93acf868803e13e831aa9278cf7a6661ad7fe9a1..1bf01f178fa96bbff21147cff111243678775535 100644 (file)
@@ -2134,14 +2134,6 @@ function check_php_version($version="4.1.0") {
     $minversion = intval(str_replace(".", "", $version));
     $curversion = intval(str_replace(".", "", phpversion()));
     return ($curversion >= $minversion);
-# below is a slightly different implementation, that is faster, but cannot check
-# versions isn't flexible in testing versions lower than 4.1.0
-//  if (function_exists(version_compare)){
-//      return version_compare(PHP_VERSION, $version, ">=");
-//  } else {
-//  # version_compare does not exist pre 4.1.0, so we know that the users version is too old.
-//      return false;
-//  }
 }
 
 function check_browser_version($brand="MSIE", $version=5.5) {