Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

performance improvement when checking gd version

  • Loading branch information...
commit a3e175eea5bf81fb89464eddadc0d934a83e6ccd 1 parent ca3cf39
moodler authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/moodlelib.php
View
3  lib/moodlelib.php
@@ -2134,6 +2134,7 @@ function check_php_version($version="4.1.0") {
$minversion = intval(str_replace(".", "", $version));
$curversion = intval(str_replace(".", "", phpversion()));
return ($curversion >= $minversion);
+// return version_compare(phpversion(), $version, ">=");
}
function check_browser_version($brand="MSIE", $version=5.5) {
@@ -2169,7 +2170,7 @@ function can_use_richtext_editor() {
function check_gd_version() {
ob_start();
- phpinfo();
+ phpinfo(8);
$phpinfo = ob_get_contents();
ob_end_clean();
Please sign in to comment.
Something went wrong with that request. Please try again.