mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/13342] Fix invalid resetting of CAPTCHA plugin when using Recaptcha.
This commit is contained in:
commit
3b1c611566
@ -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