aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorRuslan Uzdenov <rxu@mail.ru>2009-06-22 14:36:04 +0000
committerRuslan Uzdenov <rxu@mail.ru>2009-06-22 14:36:04 +0000
commitbfcf6a1de5181a0b26b247f8cb9e181b8c83ff90 (patch)
tree5d49b436417ee96cc208017d255bba7f883ec4ba /phpBB/search.php
parent588dd7337fd87719b21cf2ec85671713e925acb9 (diff)
downloadforums-bfcf6a1de5181a0b26b247f8cb9e181b8c83ff90.tar
forums-bfcf6a1de5181a0b26b247f8cb9e181b8c83ff90.tar.gz
forums-bfcf6a1de5181a0b26b247f8cb9e181b8c83ff90.tar.bz2
forums-bfcf6a1de5181a0b26b247f8cb9e181b8c83ff90.tar.xz
forums-bfcf6a1de5181a0b26b247f8cb9e181b8c83ff90.zip
Fix bug #46765 - View unread posts
Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9653 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 5e2a7c2836..e5fd852e0d 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -348,6 +348,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
break;
case 'newposts':
+ case 'unreadposts':
$l_search_title = $user->lang['SEARCH_NEW'];
// force sorting
$show_results = (request_var('sr', 'topics') == 'posts') ? 'posts' : 'topics';
@@ -803,6 +804,10 @@ if ($keywords || $author || $author_id || $search_id || $submit)
topic_status($row, $replies, (isset($topic_tracking_info[$forum_id][$row['topic_id']]) && $row['topic_last_post_time'] > $topic_tracking_info[$forum_id][$row['topic_id']]) ? true : false, $folder_img, $folder_alt, $topic_type);
$unread_topic = (isset($topic_tracking_info[$forum_id][$row['topic_id']]) && $row['topic_last_post_time'] > $topic_tracking_info[$forum_id][$row['topic_id']]) ? true : false;
+ if ($search_id == 'unreadposts' && !$unread_topic)
+ {
+ continue;
+ }
$topic_unapproved = (!$row['topic_approved'] && $auth->acl_get('m_approve', $forum_id)) ? true : false;
$posts_unapproved = ($row['topic_approved'] && $row['topic_replies'] < $row['topic_replies_real'] && $auth->acl_get('m_approve', $forum_id)) ? true : false;