summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db68db2)
raw | patch | inline | side by side (parent: db68db2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jul 2011 07:33:04 +0000 (07:33 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jul 2011 07:33:04 +0000 (07:33 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20955 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/php_setup.inc | patch | blob | history |
index 258c467c9065c98eeb990432e7a79eaf210feaf5..8dd1005e1c04af0183335feb96589254c94b2f1f 100644 (file)
"\n\n".
"*** PHP error information ***\n\n");
}
-
- if (session::is_set('js') && session::get('js')==FALSE){
+
+
+ if (class_exists('session') && session::is_set('js') && session::get('js')==FALSE){
$error_collector= "<div>";
} else {
+
+ $warning_image = (is_callable('image')) ?
+ image('images/toolbar-warning.png') : "<image src='images/toolbar-warning.png' border=0>";
+ $mailto_image = (is_callable('image')) ?
+ image('images/mailto.png') : "<image src='images/mailto.png' border=0>";
+
$error_collector= "
<table summary=\"\" class='error-collector'>
<tr>
- <td style='width:32px'>".image('images/toolbar-warning.png')."</td>
+ <td style='width:32px'>{$warning_image}</td>
<td><span>"._("Generating this page caused the PHP interpreter to raise some errors!")."</span></td>
<td align='right'>
<a href=\"mailto:gosa-bugs@oss.gonicus.de?subject=GOsa%20bugreport&body=%BUGBODY%\">
- ".image('images/mailto.png')." "._("Send bug report")."
+ {$mailto_image} "._("Send bug report")."
</a>
</td>
<td align='right'>