From 45f570038426f36d547dcdc23ef631bd48a7dc6e Mon Sep 17 00:00:00 2001 From: Ruslan Uzdenov Date: Mon, 17 Aug 2009 13:28:28 +0000 Subject: Add unread posts search support for cookie-based tracking Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10005 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'phpBB/search.php') diff --git a/phpBB/search.php b/phpBB/search.php index 3556c5b435..f991e8e023 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -372,8 +372,6 @@ if ($keywords || $author || $author_id || $search_id || $submit) break; case 'unreadposts': - if ($config['load_db_lastread'] && $user->data['is_registered']) - { $l_search_title = $user->lang['SEARCH_UNREAD']; // force sorting $show_results = 'topics'; @@ -399,10 +397,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) $sql_sort"; $field = 'topic_id'; } - break; - } - // Do nothing if it's cookie based read tracking - // Just do not break and let user to see newposts + break; case 'newposts': $l_search_title = $user->lang['SEARCH_NEW']; -- cgit v1.2.1