mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-01 13:17:52 +02:00
[ticket/13342] Fix invalid resetting of CAPTCHA plugin when using Recaptcha.
The Recaptcha plugin class name does not follow the phpbb_captcha_ prefix convention as all others. Instead it simply uses phpbb_, hence the check for its existence under phpbb/captcha/plugins/ fails. PHPBB3-13342
This commit is contained in:
parent
4ffdb12938
commit
fb34cbf7cd
@ -25,9 +25,13 @@ class captcha_plugins extends \phpbb\db\migration\migration
|
||||
public function update_data()
|
||||
{
|
||||
$captcha_plugin = $this->config['captcha_plugin'];
|
||||
if (strpos($this->config['captcha_plugin'], 'phpbb_captcha_') === 0)
|
||||
if (strpos($captcha_plugin, 'phpbb_captcha_') === 0)
|
||||
{
|
||||
$captcha_plugin = substr($this->config['captcha_plugin'], strlen('phpbb_captcha_'));
|
||||
$captcha_plugin = substr($captcha_plugin, strlen('phpbb_captcha_'));
|
||||
}
|
||||
else if (strpos($captcha_plugin, 'phpbb_') === 0)
|
||||
{
|
||||
$captcha_plugin = substr($captcha_plugin, strlen('phpbb_'));
|
||||
}
|
||||
|
||||
return array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user