From 8c3b64d00defbba89f38686297e4e9f43e39fd56 Mon Sep 17 00:00:00 2001 From: roundcube Date: Mon, 14 Nov 2005 23:55:46 +0000 Subject: SMTPS support and minor bugfixes git-svn-id: https://svn.roundcube.net/trunk@83 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/bugs.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program/include/bugs.inc') diff --git a/roundcubemail/program/include/bugs.inc b/roundcubemail/program/include/bugs.inc index d67281ef3..c9116d5a2 100644 --- a/roundcubemail/program/include/bugs.inc +++ b/roundcubemail/program/include/bugs.inc @@ -63,8 +63,12 @@ function log_bug($arg_arr) $arg_arr['message'], $arg_arr['file'], $arg_arr['line']); - - if ($fp = fopen($INSTALL_PATH.'logs/errors', 'a')) + + if (empty($CONFIG['log_dir'])) + $CONFIG['log_dir'] = $INSTALL_PATH.'logs'; + + if ($fp = fopen($CONFIG['log_dir'].'/errors', 'a')) + { fwrite($fp, $log_entry); fclose($fp); -- cgit v1.2.3