index 0e3e294f2549eb80851dccbcc6605b373cfef75c..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'>
$smarty = new Smarty;
$smarty->template_dir = $BASE_DIR.'/ihtml/';
$smarty->caching= false;
-$smarty->php_handling= Smarty::PHP_REMOVE;
+
+// To be able to switch between smarty version 2/3
+if(defined('SMARTY_PHP_REMOVE')){
+ $smarty->php_handling= SMARTY_PHP_REMOVE;
+}else{
+ $smarty->php_handling= Smarty::PHP_REMOVE;
+}
+
/* Global FPDF define */
define('FPDF_FONTPATH', '/usr/share/php/fpdf/font/');