瀏覽代碼

! We will need to indicate errors from cron, because they don't go through the normal error handler.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 年之前
父節點
當前提交
992bcd1a03
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      Sources/Errors.php
  2. 2 0
      Themes/default/languages/ManageMaintenance.english.php

+ 1 - 0
Sources/Errors.php

@@ -82,6 +82,7 @@ function log_error($error_message, $error_type = 'general', $file = null, $line
 		'ban',
 		'template',
 		'debug',
+		'cron',
 	);
 
 	// This prevents us from infinite looping if the hook or call produces an error.

+ 2 - 0
Themes/default/languages/ManageMaintenance.english.php

@@ -124,6 +124,8 @@ $txt['errortype_template'] = 'Template';
 $txt['errortype_template_desc'] = 'Errors related to the loading of templates.';
 $txt['errortype_user'] = 'User';
 $txt['errortype_user_desc'] = 'Errors resulting from user errors.  Includes failed passwords, trying to login when banned, and trying to do an action for which they do not have permission.';
+$txt['errortype_cron'] = 'Cron';
+$txt['errortype_cron_desc'] = 'Errors resulting from background tasks.';
 
 $txt['maintain_recount'] = 'Recount all forum totals and statistics';
 $txt['maintain_recount_info'] = 'Should the total replies of a topic or the number of PMs in your inbox be incorrect: this function will recount all saved counts and statistics for you.';