summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0809fc)
raw | patch | inline | side by side (parent: d0809fc)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 May 2005 13:10:58 +0000 (13:10 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 May 2005 13:10:58 +0000 (13:10 +0000) |
include/functions.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index 8323cbfe1ead3aead2b56dd3785d320881cb8e17..8f2868882254305adc25aad6b870369939e42a64 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
{
global $error_collector;
- $svn_path = '$HeadURL$';
-
/* FIXME: workaround for buggy imap_open */
if (preg_match('/imap_open/', $errstr)){
return;
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= "<table style='width:100%;background-color:#F0F0F0'><tr><td'><h1><img align=center src='".get_template_path('images/warning.png')."'> "._("Generating this page caused the PHP interpreter to rise some errors!")."</h1></td><td align=right>["._("Send report")."] ["._("Toggle information")."]</td></tr></table>";
}
-
+
/* Extract traceback data */
$trace= debug_backtrace();