mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10365] Fix up S_POST_UNAPPROVED check, make it easier to read
PHPBB3-10365
This commit is contained in:
parent
18ca3a32bc
commit
52bd8c307f
1 changed files with 2 additions and 2 deletions
|
@ -239,8 +239,8 @@ function mcp_topic_view($id, $mode, $action)
|
|||
|
||||
'MINI_POST_IMG' => ($post_unread) ? $user->img('icon_post_target_unread', 'UNREAD_POST') : $user->img('icon_post_target', 'POST'),
|
||||
|
||||
'S_POST_REPORTED' => ($auth->acl_get('m_report', $topic_info['forum_id']) && $row['post_reported']) ? true : false,
|
||||
'S_POST_UNAPPROVED' => ($auth->acl_get('m_approve', $topic_info['forum_id']) && $row['post_approved']) ? false : true,
|
||||
'S_POST_REPORTED' => ($row['post_reported'] && $auth->acl_get('m_report', $topic_info['forum_id'])),
|
||||
'S_POST_UNAPPROVED' => (!$row['post_approved'] && $auth->acl_get('m_approve', $topic_info['forum_id'])),
|
||||
'S_CHECKED' => (($submitted_id_list && !in_array(intval($row['post_id']), $submitted_id_list)) || in_array(intval($row['post_id']), $checked_ids)) ? true : false,
|
||||
'S_HAS_ATTACHMENTS' => (!empty($attachments[$row['post_id']])) ? true : false,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue