diff options
author | kochi <kochi@centrum.cz> | 2014-11-29 12:53:30 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-12-06 13:42:16 +0100 |
commit | dfbc109b59a63c25cda9df4d6ab4e476760b1308 (patch) | |
tree | 1685e9665d855c70beb40d4ae049ff146c16b312 | |
parent | 70483d60886ad416c3dd40f29e1128e031322e1e (diff) | |
download | forums-dfbc109b59a63c25cda9df4d6ab4e476760b1308.tar forums-dfbc109b59a63c25cda9df4d6ab4e476760b1308.tar.gz forums-dfbc109b59a63c25cda9df4d6ab4e476760b1308.tar.bz2 forums-dfbc109b59a63c25cda9df4d6ab4e476760b1308.tar.xz forums-dfbc109b59a63c25cda9df4d6ab4e476760b1308.zip |
[ticket/13400] Information text if the server load id high at search
PHPBB3-13400
-rw-r--r-- | phpBB/language/en/search.php | 1 | ||||
-rw-r--r-- | phpBB/search.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/language/en/search.php b/phpBB/language/en/search.php index ec5dd99eb8..13e5bf7a97 100644 --- a/phpBB/language/en/search.php +++ b/phpBB/language/en/search.php @@ -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.', diff --git a/phpBB/search.php b/phpBB/search.php index e80a89b382..2598e407cc 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -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 |