From fd8c5061097f156da55a9cee8972aa4f13daa7b1 Mon Sep 17 00:00:00 2001 From: thomascube Date: Mon, 14 Nov 2005 23:55:46 +0000 Subject: SMTPS support and minor bugfixes --- program/include/bugs.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'program/include/bugs.inc') diff --git a/program/include/bugs.inc b/program/include/bugs.inc index d67281ef3..c9116d5a2 100644 --- a/program/include/bugs.inc +++ b/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