aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-11-18 16:28:59 +0100
committerTristan Darricau <github@nicofuma.fr>2014-11-18 16:28:59 +0100
commitacfe6dd37d58e35566f4c386c0e15b2a447d5ad4 (patch)
treeb0f41332fbab86731e791eb1047c2674052f84f2
parent0019039bc105db52dbd3727a038b86797a15747c (diff)
parentfb34cbf7cde2e7413c0a45dc42e5014c82794b77 (diff)
downloadforums-acfe6dd37d58e35566f4c386c0e15b2a447d5ad4.tar
forums-acfe6dd37d58e35566f4c386c0e15b2a447d5ad4.tar.gz
forums-acfe6dd37d58e35566f4c386c0e15b2a447d5ad4.tar.bz2
forums-acfe6dd37d58e35566f4c386c0e15b2a447d5ad4.tar.xz
forums-acfe6dd37d58e35566f4c386c0e15b2a447d5ad4.zip
Merge pull request #3149 from prototech/ticket/13342
[ticket/13342] Fix invalid resetting of CAPTCHA plugin when using Recaptcha * prototech/ticket/13342: [ticket/13342] Fix invalid resetting of CAPTCHA plugin when using Recaptcha.
-rw-r--r--phpBB/phpbb/db/migration/data/v310/captcha_plugins.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php b/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php
index 13071e9891..328c08f1ec 100644
--- a/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php
+++ b/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php
@@ -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(