[ticket/17414] Fix small issues with compatibility to legacy captchas

PHPBB-17414
This commit is contained in:
Marc Alexander 2024-10-19 16:55:53 +02:00
parent 28f597e182
commit fa66bc5150
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ class legacy_wrapper implements plugin_interface
{
if (method_exists($this->legacy_captcha, 'init'))
{
$this->legacy_captcha->init($type);
$this->legacy_captcha->init($type->value);
}
}

View file

@ -40,7 +40,7 @@ class qa
protected $service_name;
/** @var int Question ID */
protected $question = -1;
private $question = -1;
/**
* Constructor