From fdd85283f0ec357eb9b6abf7584f3628f477d807 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 20 May 2005 13:10:58 +0000 Subject: [PATCH] Added new translation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@287 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/include/functions.inc b/include/functions.inc index 8323cbfe1..8f2868882 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1513,8 +1513,6 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) { global $error_collector; - $svn_path = '$HeadURL$'; - /* FIXME: workaround for buggy imap_open */ if (preg_match('/imap_open/', $errstr)){ return; @@ -1525,12 +1523,11 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) return; } - - if (!preg_match('%/gosa/trunk/%', $svn_path)){ - gosa_log ("PHP error: $errstr ($errfile, line $errline)"); - return; + /* Create header as needed */ + if ($error_collector == ""){ + $error_collector= "

 "._("Generating this page caused the PHP interpreter to rise some errors!")."

["._("Send report")."] ["._("Toggle information")."]
"; } - + /* Extract traceback data */ $trace= debug_backtrace(); -- 2.30.2