summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6cf1d45)
raw | patch | inline | side by side (parent: 6cf1d45)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jul 2011 07:28:15 +0000 (07:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jul 2011 07:28:15 +0000 (07:28 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20954 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/php_setup.inc | patch | blob | history |
index f57c9b1820b58cb82a0c3b6cb7aa130fbd42a175..e2cb35c7899e4dff269bde28f9fad52281794264 100644 (file)
"*** 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_path = (is_callable('get_template_path')) ? get_template_path('images/warning.png') : 'images/warning.png' ;
+
$error_collector= "
<table summary=\"\" width=\"100%\" style='background-color:#E0E0E0;border-bottom:1px solid black;z-index:150;'>
<tr>
<td>
- <img alt=\"\" align=\"middle\" src='".get_template_path('images/warning.png')."'>
+ <img alt=\"\" align=\"middle\" src='{$warning_path}'>
<font style='font-size:14px;font-weight:bold'>".
_("Generating this page caused the PHP interpreter to raise some errors!")."
</font>