mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-20 23:51:28 +01:00
[ticket/9837] Display unapproved posts to originator
Fix whitespace issues PHPBB3-9837
This commit is contained in:
parent
e102a9a3cb
commit
46a189fa4c
@ -146,11 +146,11 @@ class content_visibility
|
||||
{
|
||||
$visibility = $data[$mode . '_visibility'];
|
||||
$poster_key = ($mode === 'topic') ? 'topic_poster' : 'poster_id';
|
||||
$is_visible = $this->auth->acl_get('m_approve', $forum_id) ||
|
||||
($visibility == ITEM_APPROVED) ||
|
||||
($this->config['display_unapproved_posts'] &&
|
||||
($this->user->data['user_id'] <> ANONYMOUS) &&
|
||||
($visibility == ITEM_UNAPPROVED || $visibility == ITEM_REAPPROVE) &&
|
||||
$is_visible = $this->auth->acl_get('m_approve', $forum_id) ||
|
||||
($visibility == ITEM_APPROVED) ||
|
||||
($this->config['display_unapproved_posts'] &&
|
||||
($this->user->data['user_id'] <> ANONYMOUS) &&
|
||||
($visibility == ITEM_UNAPPROVED || $visibility == ITEM_REAPPROVE) &&
|
||||
($this->user->data['user_id'] === $data[$poster_key])
|
||||
);
|
||||
|
||||
|
@ -899,8 +899,8 @@ if (count($topic_list))
|
||||
|
||||
// Replies
|
||||
$replies = $phpbb_content_visibility->get_count('topic_posts', $row, $topic_forum_id) - 1;
|
||||
//correct for case of unapproved topic visible to poster - a bit dirty but efficient
|
||||
if ($replies < 0)
|
||||
//correct for case of unapproved topic visible to poster - a bit dirty but efficient
|
||||
if ($replies < 0)
|
||||
{
|
||||
$replies = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user