Ver código fonte

! Hopefully a better worded error (and not logged to the admin panel, isn't really needed)

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 anos atrás
pai
commit
dae23d8ae5
2 arquivos alterados com 2 adições e 1 exclusões
  1. 1 1
      Sources/Recent.php
  2. 1 0
      Themes/default/languages/Errors.english.php

+ 1 - 1
Sources/Recent.php

@@ -575,7 +575,7 @@ function UnreadTopics()
 		$smcFunc['db_free_result']($request);
 
 		if (empty($boards))
-			fatal_lang_error('error_no_boards_selected');
+			fatal_lang_error('error_no_boards_available', false);
 
 		$query_this_board = 'id_board IN ({array_int:boards})';
 		$query_parameters['boards'] = $boards;

+ 1 - 0
Themes/default/languages/Errors.english.php

@@ -313,6 +313,7 @@ $txt['error_functionality_not_windows'] = 'Sorry, this functionality is currentl
 $txt['attachment_not_found'] = 'Attachment Not Found';
 
 $txt['error_no_boards_selected'] = 'No valid boards were selected.';
+$txt['error_no_boards_available'] = 'Sorry, there are no boards available to you at this time.';
 $txt['error_invalid_search_string'] = 'Did you forget to put something to search for?';
 $txt['error_invalid_search_string_blacklist'] = 'Your search query contained too trivial words. Please try again with a different query.';
 $txt['error_search_string_small_words'] = 'Each word must be at least two characters long.';