aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-11-18 15:11:07 +0100
committerTristan Darricau <github@nicofuma.fr>2014-11-18 15:11:07 +0100
commit0019039bc105db52dbd3727a038b86797a15747c (patch)
tree3e5fc0399ec1a878f5f6b2b6b6032b79fecca166
parentba3e4da853485811ea4c8415f15eb8a2d977ff57 (diff)
parent7c6896415391dc94c83486921118edc41189d760 (diff)
downloadforums-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.php3
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')),
)),
);