From ea6f1f8dfca3e0c47b06b0a956a8b9388e11a9c2 Mon Sep 17 00:00:00 2001 From: Alma Armas Date: Fri, 10 Jul 2020 13:54:28 +0000 Subject: [PATCH] Rename extension correctly --- CaptchaManager.php | 6 +++--- Web/Presenters/CaptchaPresenter.php | 6 +++--- Web/di.yml | 2 +- bootstrap.php | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CaptchaManager.php b/CaptchaManager.php index ffc0a51..c4a1ca9 100644 --- a/CaptchaManager.php +++ b/CaptchaManager.php @@ -1,5 +1,5 @@ session->get("captcha"); @@ -115,4 +115,4 @@ class CaptchaManager } use TSimpleSingleton; -} \ No newline at end of file +} diff --git a/Web/Presenters/CaptchaPresenter.php b/Web/Presenters/CaptchaPresenter.php index e7fd1a5..31864d0 100644 --- a/Web/Presenters/CaptchaPresenter.php +++ b/Web/Presenters/CaptchaPresenter.php @@ -1,8 +1,8 @@ send(Image::WEBP, 32); exit; } -} \ No newline at end of file +} diff --git a/Web/di.yml b/Web/di.yml index 853a3f1..6d9948b 100644 --- a/Web/di.yml +++ b/Web/di.yml @@ -1,2 +1,2 @@ services: - - captcha\Web\Presenters\CaptchaPresenter \ No newline at end of file + - commitcaptcha\Web\Presenters\CaptchaPresenter diff --git a/bootstrap.php b/bootstrap.php index e9ab746..ce6f0c9 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -1,17 +1,17 @@ - Captcha + Captcha
HTML; - return CAPTCHA_ROOT_CONF["captcha"]["enable"] ? $html : "You have already verified that you are not a robot."; + return COMMITCAPTCHA_ROOT_CONF["commitcaptcha"]["enable"] ? $html : "You have already verified that you are not a robot."; } function check_captcha(?string $input): bool @@ -19,4 +19,4 @@ function check_captcha(?string $input): bool return CaptchaManager::i()->verifyCaptcha((string) $input); } -return (function() {}); \ No newline at end of file +return (function() {});