diff options
| author | Henry Sudhof <kellanved@phpbb.com> | 2009-06-25 08:26:51 +0000 |
|---|---|---|
| committer | Henry Sudhof <kellanved@phpbb.com> | 2009-06-25 08:26:51 +0000 |
| commit | b4c17b3732659991e979b989327fe375a9218df0 (patch) | |
| tree | a03534c732bbc7936a908edd4b6657f110f15a6b /phpBB/posting.php | |
| parent | 9c795870f9c8d5569365d9df9cc7207988dcb609 (diff) | |
| download | forums-b4c17b3732659991e979b989327fe375a9218df0.tar forums-b4c17b3732659991e979b989327fe375a9218df0.tar.gz forums-b4c17b3732659991e979b989327fe375a9218df0.tar.bz2 forums-b4c17b3732659991e979b989327fe375a9218df0.tar.xz forums-b4c17b3732659991e979b989327fe375a9218df0.zip | |
We have to use the documented API
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9672 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 9 |
1 files changed, 2 insertions, 7 deletions
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 .= '<input type="hidden" name="lastclick" value="' . $current_t $s_hidden_fields .= ($draft_id || isset($_REQUEST['draft_loaded'])) ? '<input type="hidden" name="draft_loaded" value="' . request_var('draft_loaded', $draft_id) . '" />' : ''; // 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()); } |
