mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-13 03:58:48 +00:00
Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
This commit is contained in:
@@ -66,7 +66,7 @@ class captcha {
|
||||
$text = $this->code;
|
||||
|
||||
// Set the font path
|
||||
$font_path = $_SERVER["DOCUMENT_ROOT"] . "/resources/captcha/fonts";
|
||||
$font_path = dirname(__DIR__, 2) . "/resources/captcha/fonts";
|
||||
|
||||
// Array of fonts
|
||||
//$fonts[] = 'ROUGD.TTF';
|
||||
|
||||
Reference in New Issue
Block a user