From 023eb3b0ffc5067faed39d34cf5be4bd58ff46ba Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 29 May 2018 21:08:05 +0200 Subject: [PATCH] * use __DIR__ instead of dirname(__FILE__) - since PHP 5.3.0 --- templates/tibiacom/headline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/tibiacom/headline.php b/templates/tibiacom/headline.php index bacef45b..36e0dd6e 100644 --- a/templates/tibiacom/headline.php +++ b/templates/tibiacom/headline.php @@ -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);