mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-31 13:48:04 +01:00
[ticket/13400] Information text if the server load id high at search
PHPBB3-13400
This commit is contained in:
parent
70483d6088
commit
dfbc109b59
@ -71,6 +71,7 @@ $lang = array_merge($lang, array(
|
||||
'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_RESULTS' => 'No suitable matches were found.',
|
||||
'NO_SEARCH_LOAD' => 'Sorry but you cannot use search at this time. The server has high load. Please try again later.',
|
||||
'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.',
|
||||
|
@ -101,7 +101,7 @@ if (!$auth->acl_get('u_search') || !$auth->acl_getf_global('f_search') || !$conf
|
||||
if ($user->load && $config['limit_search_load'] && ($user->load > doubleval($config['limit_search_load'])))
|
||||
{
|
||||
$template->assign_var('S_NO_SEARCH', true);
|
||||
trigger_error('NO_SEARCH_TIME');
|
||||
trigger_error('NO_SEARCH_LOAD');
|
||||
}
|
||||
|
||||
// It is applicable if the configuration setting is non-zero, and the user cannot
|
||||
|
Loading…
x
Reference in New Issue
Block a user