Project

General

Profile

Bug #19410 ยป 9478.patch

Administrator Admin, 2010-05-06 04:06

View differences:

typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
}
// try, print truetype font:
$im = @imagecreate(300, 50);
$im = @imagecreatetruecolor(300, 50);
$background_color = imagecolorallocate($im, 255, 255, 55);
$text_color = imagecolorallocate($im, 233, 14, 91);
......
*/
/**
* Check if GD module is available by checking the function imagecreate
* Check if GD module is available by checking the function imagecreatetruecolor
*
* @return boolean TRUE if GD is available
*/
function isGD() {
if (function_exists('imagecreate')) {
if (@imagecreate(50, 100)) {
if (function_exists('imagecreatetruecolor')) {
if (@imagecreatetruecolor(50, 100)) {
return 1;
}
}
    (1-1/1)