mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Some fixes for check_gd_version -- please test this for me on every server you have!
This commit is contained in:
parent
17ec8eb684
commit
3ee236820a
@ -1256,10 +1256,12 @@ function check_gd_version() {
|
||||
|
||||
if (function_exists('gd_info')){
|
||||
$gd_info = gd_info();
|
||||
/// THIS IS UGLY AND NEEDS TO BE IMPROVED
|
||||
if($gd_info['GD Version'] == 'bundled (2.0 compatible)'){
|
||||
if (substr_count($gd_info['GD Version'], "2.")) {
|
||||
$gdversion = 2;
|
||||
} else if (substr_count($gd_info['GD Version'], "1.")) {
|
||||
$gdversion = 1;
|
||||
}
|
||||
|
||||
} else {
|
||||
ob_start();
|
||||
phpinfo(8);
|
||||
|
Loading…
x
Reference in New Issue
Block a user