diff options
author | Jim Wigginton <terrafrost@phpbb.com> | 2009-08-13 21:17:16 +0000 |
---|---|---|
committer | Jim Wigginton <terrafrost@phpbb.com> | 2009-08-13 21:17:16 +0000 |
commit | ebf3651e3e7b53d75a2dc877e77c1d5a3e64a089 (patch) | |
tree | ef54cc379e14325e3c69eca2670cfc8ddf098598 | |
parent | b4baa6a0941aa32db06ddabc56612616fe75605f (diff) | |
download | forums-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
-rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
-rw-r--r-- | phpBB/posting.php | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index f38bb3e4ff..3a01329090 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -220,6 +220,7 @@ <li>[Change] Parse multiline url title for [url] BBCode tag. (Bug #1309)</li> <li>[Change] Introduce new parameter to page_header() for forum specific who is online listings.</li> <li>[Change] Lifted minimum requirement for Firebird DBMS from 2.0+ to 2.1+.</li> + <li>[Change] Unapproved topics can no longer be replied to (Bug #44005)</li> <li>[Feature] Add language selection on the registration terms page (Bug #15085 - Patch by leviatan21)</li> <li>[Feature] Backported 3.2 captcha plugins. <ul> 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': |