aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorn-aleha <nick_aleha@myway.com>2014-04-14 01:14:44 +0300
committern-aleha <nick_aleha@myway.com>2014-04-16 02:14:36 +0300
commit1f44b4da18622c526e89858f7f89df9857f3a00e (patch)
treee9194898772c9058c23c3bf3fbf6fda067446912 /phpBB/search.php
parent3ce479f061ce46ad8f1ac3c99a02459ff2b4b2d2 (diff)
downloadforums-1f44b4da18622c526e89858f7f89df9857f3a00e.tar
forums-1f44b4da18622c526e89858f7f89df9857f3a00e.tar.gz
forums-1f44b4da18622c526e89858f7f89df9857f3a00e.tar.bz2
forums-1f44b4da18622c526e89858f7f89df9857f3a00e.tar.xz
forums-1f44b4da18622c526e89858f7f89df9857f3a00e.zip
[ticket/12345] Improve search flood interval message for ascraeus
Show to guests and users the remaining seconds until their next allowed search, if a search flood limit is enabled for them. PHPBB3-12345
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 4756a941f5..749aec45fd 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -108,7 +108,7 @@ if ($interval && !in_array($search_id, array('unreadposts', 'unanswered', 'activ
if ($user->data['user_last_search'] > time() - $interval)
{
$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())));
}
}