From b4c17b3732659991e979b989327fe375a9218df0 Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Thu, 25 Jun 2009 08:26:51 +0000 Subject: We have to use the documented API git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9672 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'phpBB/posting.php') diff --git a/phpBB/posting.php b/phpBB/posting.php index 9f63e43345..66daf7128f 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -592,7 +592,6 @@ if ($load && ($mode == 'reply' || $mode == 'quote' || $mode == 'post') && $post_ load_drafts($topic_id, $forum_id); } -$solved_captcha = false; if ($submit || $preview || $refresh) { @@ -778,10 +777,6 @@ if ($submit || $preview || $refresh) { $error[] = $vc_response; } - else - { - $solved_captcha = true; - } } // check form @@ -1247,7 +1242,7 @@ generate_forum_nav($post_data); // Build Forum Rules generate_forum_rules($post_data); -if ($config['enable_post_confirm'] && !$user->data['is_registered'] && $solved_captcha === false && ($mode == 'post' || $mode == 'reply' || $mode == 'quote')) +if ($config['enable_post_confirm'] && !$user->data['is_registered'] && $captcha->is_solved() === false && ($mode == 'post' || $mode == 'reply' || $mode == 'quote')) { $captcha->reset(); @@ -1262,7 +1257,7 @@ $s_hidden_fields .= '' : ''; // Add the confirm id/code pair to the hidden fields, else an error is displayed on next submit/preview -if ($solved_captcha !== false) +if ($captcha->is_solved() !== false) { $s_hidden_fields .= build_hidden_fields($captcha->get_hidden_fields()); } -- cgit v1.2.1