mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12345] Improve search flood interval message for ascraeus
This commit is contained in:
commit
beab7dd685
2 changed files with 5 additions and 2 deletions
|
@ -69,7 +69,10 @@ $lang = array_merge($lang, array(
|
||||||
'NO_RECENT_SEARCHES' => 'No searches have been carried out recently.',
|
'NO_RECENT_SEARCHES' => 'No searches have been carried out recently.',
|
||||||
'NO_SEARCH' => 'Sorry but you are not permitted to use the search system.',
|
'NO_SEARCH' => 'Sorry but you are not permitted to use the search system.',
|
||||||
'NO_SEARCH_RESULTS' => 'No suitable matches were found.',
|
'NO_SEARCH_RESULTS' => 'No suitable matches were found.',
|
||||||
'NO_SEARCH_TIME' => 'Sorry but you cannot use search at this time. Please try again in a few minutes.',
|
'NO_SEARCH_TIME' => array(
|
||||||
|
1 => 'Sorry but you cannot use search at this time. Please try again in %d second.',
|
||||||
|
2 => 'Sorry but you cannot use search at this time. Please try again in %d seconds.',
|
||||||
|
),
|
||||||
'NO_SEARCH_UNREADS' => 'Sorry but searching for unread posts has been disabled on this board.',
|
'NO_SEARCH_UNREADS' => 'Sorry but searching for unread posts has been disabled on this board.',
|
||||||
'WORD_IN_NO_POST' => 'No posts were found because the word <strong>%s</strong> is not contained in any post.',
|
'WORD_IN_NO_POST' => 'No posts were found because the word <strong>%s</strong> is not contained in any post.',
|
||||||
'WORDS_IN_NO_POST' => 'No posts were found because the words <strong>%s</strong> are not contained in any post.',
|
'WORDS_IN_NO_POST' => 'No posts were found because the words <strong>%s</strong> are not contained in any post.',
|
||||||
|
|
|
@ -108,7 +108,7 @@ if ($interval && !in_array($search_id, array('unreadposts', 'unanswered', 'activ
|
||||||
if ($user->data['user_last_search'] > time() - $interval)
|
if ($user->data['user_last_search'] > time() - $interval)
|
||||||
{
|
{
|
||||||
$template->assign_var('S_NO_SEARCH', true);
|
$template->assign_var('S_NO_SEARCH', true);
|
||||||
trigger_error('NO_SEARCH_TIME');
|
trigger_error($user->lang('NO_SEARCH_TIME', (int) ($user->data['user_last_search'] + $interval - time())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue