1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 19:54:12 +02:00

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
This commit is contained in:
Ruslan Uzdenov
2009-08-17 13:28:28 +00:00
parent b4297abf2a
commit 45f5700384
2 changed files with 56 additions and 10 deletions

View File

@@ -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'];