* use __DIR__ instead of dirname(__FILE__) - since PHP 5.3.0

This commit is contained in:
slawkens 2018-05-29 21:08:05 +02:00
parent bf361238cb
commit 023eb3b0ff

View File

@ -18,7 +18,7 @@ if(!@file_exists($page_file))
$_GET['t'] = '';
// set font path
putenv('GDFONTPATH=' . dirname(__FILE__));
putenv('GDFONTPATH=' . __DIR__);
// create image
$image = imagecreatetruecolor(250, 28);