summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 505163b)
raw | patch | inline | side by side (parent: 505163b)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 May 2005 13:42:50 +0000 (13:42 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 May 2005 13:42:50 +0000 (13:42 +0000) |
include/functions.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index 0b25c020b85973160b5625df15829750a4e9cd8a..b6b2be15fdb7512e0ffabe7a3506633b4b8320bf 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* Create header as needed */
if ($error_collector == ""){
- $error_collector= "<table style='width:100%;background-color:#F0F0F0;border-bottom:1px solid black'><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><button onClick='toggle(\"errorbox\")'>"._("Toggle information")."</button></td></tr></table><div id='errorbox' style='position:absolute; z-index:1; visibility: hidden'>";
+ if ($_SESSION['js']==FALSE){
+ $error_collector= "<div>";
+ } else {
+ $error_collector= "<table style='width:100%;background-color:#F0F0F0;border-bottom:1px solid black'><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><button onClick='toggle(\"errorbox\")'>"._("Toggle information")."</button></td></tr></table><div id='errorbox' style='position:absolute; z-index:1; visibility: hidden'>";
+ }
}
/* Extract traceback data */