diff options
author | thomascube <thomas@roundcube.net> | 2005-11-14 23:55:46 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2005-11-14 23:55:46 +0000 |
commit | fd8c5061097f156da55a9cee8972aa4f13daa7b1 (patch) | |
tree | b1e506f5cb480bb4eb787e6f64622b29a400f631 /program/include/main.inc | |
parent | ecf7590cb84bb944d4adcd46124fbf0d081848f3 (diff) |
SMTPS support and minor bugfixes
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index adb0b8822..306d2105e 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -40,12 +40,16 @@ function rcmail_startup($task='mail') include_once('config/db.inc.php'); $CONFIG = array_merge($CONFIG, $rcmail_config); + if (empty($CONFIG['log_dir'])) + $CONFIG['log_dir'] = $INSTALL_PATH.'logs'; + else + $CONFIG['log_dir'] = ereg_replace('\/$', '', $CONFIG['log_dir']); // set PHP error logging according to config if ($CONFIG['debug_level'] & 1) { ini_set('log_errors', 1); - ini_set('error_log', $INSTALL_PATH.'logs/errors'); + ini_set('error_log', $CONFIG['log_dir'].'/errors'); } if ($CONFIG['debug_level'] & 4) ini_set('display_errors', 1); |