aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php')
-rw-r--r--phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
index 1992117e09..d6ef8f50b1 100644
--- a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
+++ b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
@@ -474,6 +474,7 @@ class phpbb_captcha_qa
$question_id = request_var('question_id', 0);
$action = request_var('action', '');
+ $list_url = $module->u_action . "&configure=1&select_captcha=" . $this->get_class_name();
$template->assign_vars(array(
'U_ACTION' => $module->u_action,
@@ -490,7 +491,7 @@ class phpbb_captcha_qa
if (confirm_box(true))
{
$this->acp_delete_question($question_id);
- trigger_error($user->lang['QUESTION_DELETED'] . adm_back_link($module->u_action));
+ trigger_error($user->lang['QUESTION_DELETED'] . adm_back_link($list_url));
}
else
{
@@ -520,6 +521,9 @@ class phpbb_captcha_qa
));
}
+ $template->assign_vars(array(
+ 'U_LIST' => $list_url,
+ ));
if ($question_id)
{
if ($question = $this->acp_get_question_data($question_id))
@@ -534,7 +538,7 @@ class phpbb_captcha_qa
}
else
{
- trigger_error($user->lang['FORM_INVALID'] . adm_back_link($module->u_action));
+ trigger_error($user->lang['FORM_INVALID'] . adm_back_link($list_url));
}
}
else
@@ -568,12 +572,12 @@ class phpbb_captcha_qa
$this->acp_add_question($data);
}
- trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link($module->u_action . "&configure=1&select_captcha=" . $this->get_class_name()));
+ trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link($list_url));
}
}
else if ($submit)
{
- trigger_error($user->lang['FORM_INVALID'] . adm_back_link($module->u_action));
+ trigger_error($user->lang['FORM_INVALID'] . adm_back_link($list_url));
}
}
}