diff --git a/src/Captcha/TextCaptcha.php b/src/Captcha/TextCaptcha.php
index 68011cfc6..eeb9b1862 100644
--- a/src/Captcha/TextCaptcha.php
+++ b/src/Captcha/TextCaptcha.php
@@ -49,13 +49,11 @@ class TextCaptcha implements CaptchaInterface
*/
public function get(): string
{
- global $lang;
-
$_SESSION['phrase'] = $this->captcha->getPhrase();
$this->captcha->build();
return "
-  . )
+  . )
";
}