aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-08-09 10:41:56 +0200
committerTristan Darricau <github@nicofuma.fr>2014-08-11 01:16:02 +0200
commit6e4991093ae8f4ce22cc5bdf8b5bd8dcf42c14f3 (patch)
treec6f171f177fc2e2683eceacfe0526f348dd15953 /phpBB
parenta1d5ad8a37144aaa1b5d32b3e61afc895cc60bfb (diff)
downloadforums-6e4991093ae8f4ce22cc5bdf8b5bd8dcf42c14f3.tar
forums-6e4991093ae8f4ce22cc5bdf8b5bd8dcf42c14f3.tar.gz
forums-6e4991093ae8f4ce22cc5bdf8b5bd8dcf42c14f3.tar.bz2
forums-6e4991093ae8f4ce22cc5bdf8b5bd8dcf42c14f3.tar.xz
forums-6e4991093ae8f4ce22cc5bdf8b5bd8dcf42c14f3.zip
[ticket/11854] Fix migration
PHPBB3-11854
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/config/captcha.yml10
-rw-r--r--phpBB/phpbb/db/migration/data/v310/captcha_plugins.php3
2 files changed, 7 insertions, 6 deletions
diff --git a/phpBB/config/captcha.yml b/phpBB/config/captcha.yml
index 527dba2257..fa40c89045 100644
--- a/phpBB/config/captcha.yml
+++ b/phpBB/config/captcha.yml
@@ -14,30 +14,30 @@ services:
core.captcha.plugins.gd:
class: phpbb\captcha\plugins\gd
- scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work!
+ scope: prototype # scope MUST be prototype for this to work!
tags:
- { name: captchas.plugins }
core.captcha.plugins.gd_wave:
class: phpbb\captcha\plugins\gd_wave
- scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work!
+ scope: prototype # scope MUST be prototype for this to work!
tags:
- { name: captchas.plugins }
core.captcha.plugins.nogd:
class: phpbb\captcha\plugins\nogd
- scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work!
+ scope: prototype # scope MUST be prototype for this to work!
tags:
- { name: captchas.plugins }
core.captcha.plugins.qa:
class: phpbb\captcha\plugins\qa
- scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work!
+ scope: prototype # scope MUST be prototype for this to work!
tags:
- { name: captchas.plugins }
core.captcha.plugins.recaptcha:
class: phpbb\captcha\plugins\recaptcha
- scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work!
+ scope: prototype # scope MUST be prototype for this to work!
tags:
- { name: captchas.plugins }
diff --git a/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php b/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php
index 5e0a09e75a..e6f15ca407 100644
--- a/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php
+++ b/phpBB/phpbb/db/migration/data/v310/captcha_plugins.php
@@ -24,9 +24,10 @@ 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)
{
- $captcha_plugin = substr(strlen('phpbb_captcha_'), $this->config['captcha_plugin']);
+ $captcha_plugin = substr($this->config['captcha_plugin'], strlen('phpbb_captcha_'));
}
return array(