aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorJim Wigginton <terrafrost@phpbb.com>2009-08-13 21:17:16 +0000
committerJim Wigginton <terrafrost@phpbb.com>2009-08-13 21:17:16 +0000
commitebf3651e3e7b53d75a2dc877e77c1d5a3e64a089 (patch)
treeef54cc379e14325e3c69eca2670cfc8ddf098598 /phpBB/posting.php
parentb4baa6a0941aa32db06ddabc56612616fe75605f (diff)
downloadforums-ebf3651e3e7b53d75a2dc877e77c1d5a3e64a089.tar
forums-ebf3651e3e7b53d75a2dc877e77c1d5a3e64a089.tar.gz
forums-ebf3651e3e7b53d75a2dc877e77c1d5a3e64a089.tar.bz2
forums-ebf3651e3e7b53d75a2dc877e77c1d5a3e64a089.tar.xz
forums-ebf3651e3e7b53d75a2dc877e77c1d5a3e64a089.zip
- Unapproved topics can no longer be replied to (Bug #44005)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9971 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index a175ebba51..7377cda8ea 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -95,7 +95,8 @@ switch ($mode)
FROM ' . TOPICS_TABLE . ' t, ' . FORUMS_TABLE . " f
WHERE t.topic_id = $topic_id
AND (f.forum_id = t.forum_id
- OR f.forum_id = $forum_id)";
+ OR f.forum_id = $forum_id)
+ AND t.topic_approved = 1";
break;
case 'quote':
@@ -124,7 +125,7 @@ switch ($mode)
AND u.user_id = p.poster_id
AND (f.forum_id = t.forum_id
OR f.forum_id = $forum_id)" .
- (($auth->acl_get('m_approve', $forum_id)) ? '' : 'AND p.post_approved = 1');
+ (($auth->acl_get('m_approve', $forum_id) && $mode != 'quote') ? '' : 'AND p.post_approved = 1');
break;
case 'smilies':