X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Fclasses%2Fmain%2Fhelper%2Fcaptcha%2Fweb%2Fclass_GraphicalCodeCaptcha.php;h=84cc009dd07ed379f023a6d194574a0954f9d08b;hb=b9c18d6c24e3be4393bf41005aa4e428a0ea3218;hp=6fe5795b6dfb0a950b1625c89543e83961c5b986;hpb=6d749a6218d922b2f9bca9cc95f67a5cf99ab4fe;p=core.git diff --git a/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php b/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php index 6fe5795b..84cc009d 100644 --- a/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php +++ b/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php @@ -70,10 +70,10 @@ class GraphicalCodeCaptcha extends BaseCaptcha implements SolveableCaptcha { */ public function initiateCaptcha () { // Get total length - $captchaLength = $this->getConfigInstance()->readConfig('captcha_string_length'); + $captchaLength = $this->getConfigInstance()->getConfigEntry('captcha_string_length'); // Get max string length - $strLength = $this->getConfigInstance()->readConfig('random_string_length'); + $strLength = $this->getConfigInstance()->getConfigEntry('random_string_length'); // Calculate starting position based on random place $start = $this->getRngInstance()->randomNumber(0, ($strLength - $captchaLength)); @@ -91,7 +91,7 @@ class GraphicalCodeCaptcha extends BaseCaptcha implements SolveableCaptcha { $captchaString = substr($base64String, $start, $captchaLength); // Get all characters we want to replace - $searchChars = $this->getConfigInstance()->readConfig('captcha_search_chars'); + $searchChars = $this->getConfigInstance()->getConfigEntry('captcha_search_chars'); // Get fixed salt and use it as "replacement characters" $replaceChars = $this->getRngInstance()->getExtraSalt();