Remove deprecated utf8_decode

This commit is contained in:
slawkens 2023-08-05 20:52:01 +02:00
parent 757ec28028
commit aacc120360

View File

@ -14,7 +14,7 @@ imagecolortransparent($image, imagecolorallocate($image, 0, 0, 0));
// set text
$font = getenv('GDFONTPATH') . DIRECTORY_SEPARATOR . 'martel.ttf';
imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, utf8_decode($text));
imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, $text);
// header mime type
header('Content-type: image/gif');