Permalink
Browse files

Since the reimplementation of check_php_version will probably never b…

…e used, I

have removed it.
  • Loading branch information...
1 parent 709c0cb commit 8caf7e0430407df220e2293fd632456058d4d9c3 gregb_cc committed Dec 17, 2002
Showing with 0 additions and 8 deletions.
  1. +0 −8 lib/moodlelib.php
View
@@ -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) {

0 comments on commit 8caf7e0

Please sign in to comment.