Update TextCaptcha.php

This commit is contained in:
Roman Kelesidis 2025-03-08 20:06:59 +03:00
commit a7b68544b7

View file

@ -49,13 +49,11 @@ class TextCaptcha implements CaptchaInterface
*/ */
public function get(): string public function get(): string
{ {
global $lang;
$_SESSION['phrase'] = $this->captcha->getPhrase(); $_SESSION['phrase'] = $this->captcha->getPhrase();
$this->captcha->build(); $this->captcha->build();
return " return "
<img alt='{$lang['CAPTCHA']}' src=" . $this->captcha->inline() . " /><br /> <img src=" . $this->captcha->inline() . " /><br />
<input type='text' name='captcha_phrase' /> <input type='text' name='captcha_phrase' />
"; ";
} }