summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/bugs.inc
diff options
context:
space:
mode:
authorroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2005-11-14 23:55:46 +0000
committerroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2005-11-14 23:55:46 +0000
commit8c3b64d00defbba89f38686297e4e9f43e39fd56 (patch)
tree3c688e3e8630d35d52de4f9c85e8d469fb485888 /roundcubemail/program/include/bugs.inc
parent48668271f1df53195fef4259cc3c5b2a851c820e (diff)
SMTPS support and minor bugfixes
git-svn-id: https://svn.roundcube.net/trunk@83 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/bugs.inc')
-rw-r--r--roundcubemail/program/include/bugs.inc8
1 files changed, 6 insertions, 2 deletions
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);