From d461ee4f5ca84471070f2b2a45762a179e26007e Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 7 Mar 2016 21:59:40 +0100 Subject: [ticket/13264] Do not force approved state if post visibility is known Post visibility is used if it is set to a valid value. PHPBB3-13264 --- phpBB/includes/functions_posting.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'phpBB/includes/functions_posting.php') diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index fae8e659bb..3e93535856 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1636,6 +1636,10 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u break; } } + else if (isset($data['post_visibility']) && $data['post_visibility'] !== false) + { + $post_visibility = $data['post_visibility']; + } // MODs/Extensions are able to force any visibility on posts if (isset($data['force_approved_state'])) -- cgit v1.2.1