1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 21:54:00 +02:00

[ticket/17414] Replace confirm types with enum

PHPBB-17414
This commit is contained in:
Marc Alexander
2024-10-13 17:13:01 +02:00
parent 589fe70be6
commit 48454308ae
8 changed files with 36 additions and 19 deletions

View File

@@ -13,6 +13,7 @@
namespace phpbb\report\controller;
use phpbb\captcha\plugins\confirm_type;
use phpbb\captcha\plugins\plugin_interface;
use phpbb\exception\http_exception;
use phpbb\report\report_handler_interface;
@@ -132,7 +133,7 @@ class report
if ($this->config['enable_post_confirm'] && !$this->user->data['is_registered'])
{
$captcha = $this->captcha_factory->get_instance($this->config['captcha_plugin']);
$captcha->init(plugin_interface::CONFIRM_REPORT);
$captcha->init(confirm_type::REPORT);
}
//Has the report been cancelled?