From fbf77b4493f1b77c99751d8a86365c712ae3fb1b Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 18 Nov 2005 10:35:15 -0500 Subject: [PATCH] Added Japanese localization --- program/include/bugs.inc | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/program/include/bugs.inc b/program/include/bugs.inc index 819887c..c9116d5 100644 --- a/program/include/bugs.inc +++ b/program/include/bugs.inc @@ -6,7 +6,7 @@ | | | This file is part of the BQube Webmail client | | Copyright (C) 2005, BQube Dev - Switzerland | - | All rights reserved. | + | Licensed under the GNU GPL | | | | PURPOSE: | | Provide error handling and logging functions | @@ -63,8 +63,12 @@ $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); -- Gitblit v1.9.1