From ae19d8f1c8374e5fbcb6ea79e5751d61178e0d4b Mon Sep 17 00:00:00 2001 From: osben Date: Tue, 13 Mar 2018 12:46:04 +0200 Subject: [PATCH] fix path for font --- captcha/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/captcha/image.php b/captcha/image.php index 647d807..1c7f8ba 100755 --- a/captcha/image.php +++ b/captcha/image.php @@ -14,7 +14,7 @@ $_SESSION["captcha_code"] = $code; $bg_image = "blank.jpg"; - $font = "./maturasc.ttf"; + $font = dirname(__FILE__)."/maturasc.ttf"; $size = 14+rand(0, 10); $rotation = rand(-5, 10);