diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2009-08-16 21:21:04 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2009-08-16 21:21:04 +0000 |
commit | 76fd6026bcbbfc7136766eba9295663b1a820a48 (patch) | |
tree | 99fb807b37e150ea5d5dfa8a2271e74213083708 /phpBB | |
parent | ba3e0831ea90cdf2fa740088162e57221107748c (diff) | |
download | forums-76fd6026bcbbfc7136766eba9295663b1a820a48.tar forums-76fd6026bcbbfc7136766eba9295663b1a820a48.tar.gz forums-76fd6026bcbbfc7136766eba9295663b1a820a48.tar.bz2 forums-76fd6026bcbbfc7136766eba9295663b1a820a48.tar.xz forums-76fd6026bcbbfc7136766eba9295663b1a820a48.zip |
erm, on the contrary; can that reset call
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9999 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/posting.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index ae614a36ef..84753a5ef2 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1121,6 +1121,11 @@ if ($submit || $preview || $refresh) // The last parameter tells submit_post if search indexer has to be run $redirect_url = submit_post($mode, $post_data['post_subject'], $post_data['username'], $post_data['topic_type'], $poll, $data, $update_message, ($update_message || $update_subject) ? true : false); + + if ($config['enable_post_confirm'] && !$user->data['is_registered'] && (isset($captcha) && $captcha->is_solved() === true) && ($mode == 'post' || $mode == 'reply' || $mode == 'quote')) + { + $captcha->reset(); + } // Check the permissions for post approval. Moderators are not affected. if (!$auth->acl_get('f_noapprove', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id'])) { |