diff options
author | Tristan Darricau <github@darricau.eu> | 2014-04-20 18:35:31 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-05-04 15:44:13 +0200 |
commit | 3bf61d4df044d8ca5d65381d7b0081327d6912e9 (patch) | |
tree | 6dac3883e125003e6832b40c19419a4cf1fc2d29 | |
parent | 9dc4e5a61f5bfe7299f9f6ffbd851529ad459ba1 (diff) | |
download | forums-3bf61d4df044d8ca5d65381d7b0081327d6912e9.tar forums-3bf61d4df044d8ca5d65381d7b0081327d6912e9.tar.gz forums-3bf61d4df044d8ca5d65381d7b0081327d6912e9.tar.bz2 forums-3bf61d4df044d8ca5d65381d7b0081327d6912e9.tar.xz forums-3bf61d4df044d8ca5d65381d7b0081327d6912e9.zip |
[ticket/12459] Fix: Differentiating unapproved and deleted posts
Unapproved and deleted posts should not be displayed with the same message
(POST_UNAPPROVED)
PHPBB3-12459
-rw-r--r-- | phpBB/phpbb/feed/post_base.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/feed/post_base.php b/phpBB/phpbb/feed/post_base.php index cf1b59a090..cfcd8671a3 100644 --- a/phpBB/phpbb/feed/post_base.php +++ b/phpBB/phpbb/feed/post_base.php @@ -46,7 +46,8 @@ abstract class post_base extends \phpbb\feed\attachments_base { $item_row['statistics'] = $this->user->lang['POSTED'] . ' ' . $this->user->lang['POST_BY_AUTHOR'] . ' ' . $this->user_viewprofile($row) . ' ' . $this->separator_stats . ' ' . $this->user->format_date($row[$this->get('published')]) - . (($this->is_moderator_approve_forum($row['forum_id']) && (int)$row['post_visibility'] !== ITEM_APPROVED) ? ' ' . $this->separator_stats . ' ' . $this->user->lang['POST_UNAPPROVED'] : ''); + . (($this->is_moderator_approve_forum($row['forum_id']) && (int)$row['post_visibility'] === ITEM_UNAPPROVED) ? ' ' . $this->separator_stats . ' ' . $this->user->lang['POST_UNAPPROVED'] : '') + . (($this->is_moderator_approve_forum($row['forum_id']) && (int)$row['post_visibility'] === ITEM_DELETED) ? ' ' . $this->separator_stats . ' ' . $this->user->lang['POST_DELETED'] : ''); } } } |