aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/language/en/captcha_qa.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-03-11 10:51:07 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-03-11 10:51:07 +0100
commit4c5c289f75c267e1f3e789c0304054ed4e3e2564 (patch)
treeddbc06fade7fe78f0e6322185c785f982c191497 /phpBB/language/en/captcha_qa.php
parent9288a50bcf30beb78a0b38ab39c38208becf6a2c (diff)
downloadforums-4c5c289f75c267e1f3e789c0304054ed4e3e2564.tar
forums-4c5c289f75c267e1f3e789c0304054ed4e3e2564.tar.gz
forums-4c5c289f75c267e1f3e789c0304054ed4e3e2564.tar.bz2
forums-4c5c289f75c267e1f3e789c0304054ed4e3e2564.tar.xz
forums-4c5c289f75c267e1f3e789c0304054ed4e3e2564.zip
[ticket/14241] Prevent empty q&a as a result of improper settings
Improper setup of the q&a captcha in combination with the admin choosing a default language that does not have any questions and answers set might result in the user being presented empty questions and answers. This change will try to fall back to any question in case the admin incorrectly set the default language and has no questions & answers set. If that does not work, the captcha will not allow passing it and suggest to contact the board admin to resolve this issue. PHPBB3-14241
Diffstat (limited to 'phpBB/language/en/captcha_qa.php')
-rw-r--r--phpBB/language/en/captcha_qa.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/language/en/captcha_qa.php b/phpBB/language/en/captcha_qa.php
index f764a83f24..28011eb636 100644
--- a/phpBB/language/en/captcha_qa.php
+++ b/phpBB/language/en/captcha_qa.php
@@ -40,6 +40,7 @@ $lang = array_merge($lang, array(
'CAPTCHA_QA' => 'Q&amp;A',
'CONFIRM_QUESTION_EXPLAIN' => 'This question is a means of preventing automated form submissions by spambots.',
'CONFIRM_QUESTION_WRONG' => 'You have provided an invalid answer to the question.',
+ 'CONFIRM_QUESTION_MISSING' => 'Questions for the captcha could not be retrieved. Please contact a board administrator.',
'QUESTION_ANSWERS' => 'Answers',
'ANSWERS_EXPLAIN' => 'Please enter valid answers to the question, one per line.',
@@ -60,5 +61,4 @@ $lang = array_merge($lang, array(
'QA_ERROR_MSG' => 'Please fill in all fields and enter at least one answer.',
'QA_LAST_QUESTION' => 'You cannot delete all questions while the plugin is active.',
-
));