Some fixes for check_gd_version -- please test this for me on every server you have!

This commit is contained in:
moodler 2003-05-19 03:27:13 +00:00
parent 17ec8eb684
commit 3ee236820a

View File

@ -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);