mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
[ticket/11854] Fix migration
PHPBB3-11854
This commit is contained in:
@@ -14,30 +14,30 @@ services:
|
|||||||
|
|
||||||
core.captcha.plugins.gd:
|
core.captcha.plugins.gd:
|
||||||
class: phpbb\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:
|
tags:
|
||||||
- { name: captchas.plugins }
|
- { name: captchas.plugins }
|
||||||
|
|
||||||
core.captcha.plugins.gd_wave:
|
core.captcha.plugins.gd_wave:
|
||||||
class: phpbb\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:
|
tags:
|
||||||
- { name: captchas.plugins }
|
- { name: captchas.plugins }
|
||||||
|
|
||||||
core.captcha.plugins.nogd:
|
core.captcha.plugins.nogd:
|
||||||
class: phpbb\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:
|
tags:
|
||||||
- { name: captchas.plugins }
|
- { name: captchas.plugins }
|
||||||
|
|
||||||
core.captcha.plugins.qa:
|
core.captcha.plugins.qa:
|
||||||
class: phpbb\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:
|
tags:
|
||||||
- { name: captchas.plugins }
|
- { name: captchas.plugins }
|
||||||
|
|
||||||
core.captcha.plugins.recaptcha:
|
core.captcha.plugins.recaptcha:
|
||||||
class: phpbb\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:
|
tags:
|
||||||
- { name: captchas.plugins }
|
- { name: captchas.plugins }
|
||||||
|
@@ -24,9 +24,10 @@ class captcha_plugins extends \phpbb\db\migration\migration
|
|||||||
|
|
||||||
public function update_data()
|
public function update_data()
|
||||||
{
|
{
|
||||||
|
$captcha_plugin = $this->config['captcha_plugin'];
|
||||||
if (strpos($this->config['captcha_plugin'], 'phpbb_captcha_') === 0)
|
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(
|
return array(
|
||||||
|
Reference in New Issue
Block a user