diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2008-09-04 14:04:30 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-09-04 14:04:30 +0000 |
| commit | 44416f4744b9a55e35c7945a13759d3e7d71fd3d (patch) | |
| tree | edba30967ffbd7e7a0eeddd50fd5be526d357740 /phpBB/posting.php | |
| parent | 0dbe7e3b6cd450342d3c566eb2caf36ca1b5db8e (diff) | |
| download | forums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.tar forums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.tar.gz forums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.tar.bz2 forums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.tar.xz forums-44416f4744b9a55e35c7945a13759d3e7d71fd3d.zip | |
- queue trigger feature
- queued posts do not affect user_posts
- show links to MCP + queued posts in ucp and acp
git-svn-id: file:///svn/phpbb/trunk@8816 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 27e465974c..973ff4c52f 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -999,10 +999,9 @@ if ($submit || $preview || $refresh) } $redirect_url = submit_post($mode, $post_data['post_subject'], $post_data['username'], $post_data['topic_type'], $poll, $data, $update_message); - $post_need_approval = (!$auth->acl_get('f_noapprove', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id'])) ? true : false; - // If the post need approval we will wait a lot longer. - if ($post_need_approval) + // Check the permissions for post approval, as well as the queue trigger where users are put on approval with a post count lower than specified. Moderators are not affected. + if (($config['enable_queue_trigger'] && $user->data['user_posts'] < $config['queue_trigger_posts'] && !$auth->acl_get('m_approve', $data['forum_id'])) || !$auth->acl_get('f_noapprove', $data['forum_id'])) { meta_refresh(10, $redirect_url); $message = ($mode == 'edit') ? $user->lang['POST_EDITED_MOD'] : $user->lang['POST_STORED_MOD']; |
