diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2009-08-04 15:57:38 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2009-08-04 15:57:38 +0000 |
commit | b6690e51f9a125380cea86f23138ab95db7b51da (patch) | |
tree | 2193557f3a42b99d668bdc56cf72bfaeca2bcac9 | |
parent | 769bc7174f355531e384c3237cdcb1c7b5a3824f (diff) | |
download | forums-b6690e51f9a125380cea86f23138ab95db7b51da.tar forums-b6690e51f9a125380cea86f23138ab95db7b51da.tar.gz forums-b6690e51f9a125380cea86f23138ab95db7b51da.tar.bz2 forums-b6690e51f9a125380cea86f23138ab95db7b51da.tar.xz forums-b6690e51f9a125380cea86f23138ab95db7b51da.zip |
and for pseudocron too (to conisder: log db errors to debug faulty cron jobs)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9923 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 6549ba9b0d..13864848a8 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3468,7 +3468,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline) echo '<b>[phpBB Debug] PHP Notice</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br />' . "\n"; // we are writing an image - the user won't see the debug, so let's place it in the log - if (defined('IMAGE_OUTPUT')) + if (defined('IMAGE_OUTPUT') || defined('IN_CRON')) { add_log('critical', 'LOG_IMAGE_GENERATION_ERROR', $errfile, $errline, $msg_text); } @@ -3614,7 +3614,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline) exit_handler(); break; - // PHP4 comptibility + // PHP4 compatibility case E_DEPRECATED: return true; break; |