diff --git a/templates/tibiacom/headline.php b/templates/tibiacom/headline.php index 36e0dd6e..261503de 100644 --- a/templates/tibiacom/headline.php +++ b/templates/tibiacom/headline.php @@ -27,7 +27,8 @@ if(!@file_exists($page_file)) imagecolortransparent($image, imagecolorallocate($image, 0, 0, 0)); // set text - imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), 'martel.ttf', utf8_decode($_GET['t'])); + $font = getenv('GDFONTPATH') . DIRECTORY_SEPARATOR . 'martel.ttf'; + imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, utf8_decode($_GET['t'])); // header mime type header('Content-type: image/gif');