From 84f9312e1d17725db6040554a993db38292d46bd Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Tue, 21 Nov 2006 07:30:48 -0500
Subject: [PATCH] Updated Russian localization

---
 program/include/bugs.inc |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/program/include/bugs.inc b/program/include/bugs.inc
index bc1a293..946a910 100644
--- a/program/include/bugs.inc
+++ b/program/include/bugs.inc
@@ -67,11 +67,17 @@
     if (empty($CONFIG['log_dir']))
       $CONFIG['log_dir'] = $INSTALL_PATH.'logs';
       
-    if ($fp = fopen($CONFIG['log_dir'].'/errors', 'a'))
+    // try to open specific log file for writing
+    if ($fp = @fopen($CONFIG['log_dir'].'/errors', 'a'))
     
       {
       fwrite($fp, $log_entry);
       fclose($fp);
+      }
+    else
+      {
+      // send error to PHPs error handler
+      trigger_error($arg_arr['message']);
       }
     }
 
@@ -109,5 +115,4 @@
     }
   }
 
-
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1