mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix headling.php cannot find font
This commit is contained in:
parent
faf40f8bed
commit
2800ab1e88
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user