From: Henry S. <kel...@ph...> - 2009-08-14 15:57:20
|
Author: Kellanved Date: Fri Aug 14 16:56:35 2009 New Revision: 9985 Log: we are not supposed to know that yet Modified: branches/phpBB-3_0_0/phpBB/viewtopic.php Modified: branches/phpBB-3_0_0/phpBB/viewtopic.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/viewtopic.php (original) --- branches/phpBB-3_0_0/phpBB/viewtopic.php Fri Aug 14 16:56:35 2009 *************** *** 282,291 **** if ($post_id) { // are we where we are supposed to be? ! if ($post_id && !$topic_data['post_approved'] && !$auth->acl_get('m_approve', $topic_data['forum_id'])) { // If post_id was submitted, we try at least to display the topic as a last resort... ! if ($post_id && $topic_id) { redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "t=$topic_id" . (($forum_id) ? "&f=$forum_id" : ''))); } --- 282,291 ---- if ($post_id) { // are we where we are supposed to be? ! if (!$topic_data['post_approved'] && !$auth->acl_get('m_approve', $topic_data['forum_id'])) { // If post_id was submitted, we try at least to display the topic as a last resort... ! if ($topic_id) { redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "t=$topic_id" . (($forum_id) ? "&f=$forum_id" : ''))); } |