From 3e480c7d884e4dc7162a2547baf33a55d3907fb7 Mon Sep 17 00:00:00 2001 From: Toky H Date: Tue, 30 Oct 2018 19:33:56 +0400 Subject: [PATCH] fix: font no found warning --- captcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/captcha.php b/captcha.php index 05bcb85..d19b3e0 100644 --- a/captcha.php +++ b/captcha.php @@ -427,7 +427,7 @@ protected function WriteText($text, $fontcfg = array()) { } // Full path of font file - $fontfile = $this->resourcesPath.'/fonts/'.$fontcfg['font']; + $fontfile = __DIR__ . DIRECTORY_SEPARATOR . $this->resourcesPath.'/fonts/'.$fontcfg['font']; /** Increase font-size for shortest words: 9% for each glyp missing */