diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-11-18 15:11:07 +0100 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-11-18 15:11:07 +0100 |
commit | 0019039bc105db52dbd3727a038b86797a15747c (patch) | |
tree | 3e5fc0399ec1a878f5f6b2b6b6032b79fecca166 | |
parent | ba3e4da853485811ea4c8415f15eb8a2d977ff57 (diff) | |
parent | 7c6896415391dc94c83486921118edc41189d760 (diff) | |
download | forums-0019039bc105db52dbd3727a038b86797a15747c.tar forums-0019039bc105db52dbd3727a038b86797a15747c.tar.gz forums-0019039bc105db52dbd3727a038b86797a15747c.tar.bz2 forums-0019039bc105db52dbd3727a038b86797a15747c.tar.xz forums-0019039bc105db52dbd3727a038b86797a15747c.zip |
Merge pull request #3148 from prototech/ticket/13315
[ticket/13315] Fix loss of CAPTCHA plugin config value.
* prototech/ticket/13315:
[ticket/13315] Check for the includes/captcha/plugins/ directory instead.
[ticket/13315] Fix loss of CAPTCHA plugin config value.
-rw-r--r-- | phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php b/phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php index d5f9076196..8211457dc6 100644 --- a/phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php +++ b/phpBB/phpbb/db/migration/data/v310/reset_missing_captcha_plugin.php @@ -29,7 +29,8 @@ class reset_missing_captcha_plugin extends \phpbb\db\migration\migration { return array( array('if', array( - (!is_file($this->phpbb_root_path . "includes/captcha/plugins/{$this->config['captcha_plugin']}_plugin." . $this->php_ext)), + (is_dir($this->phpbb_root_path . 'includes/captcha/plugins/') && + !is_file($this->phpbb_root_path . "includes/captcha/plugins/{$this->config['captcha_plugin']}_plugin." . $this->php_ext)), array('config.update', array('captcha_plugin', 'phpbb_captcha_nogd')), )), ); |