diff --git a/include/class_msg_dialog.inc b/include/class_msg_dialog.inc index 1191d77492cb6e628d1e86a65c22b360bd54defc..911606ffb10a2110be7d4b50f481a3a69c21f6e0 100644 --- a/include/class_msg_dialog.inc +++ b/include/class_msg_dialog.inc @@ -155,38 +155,41 @@ class msg_dialog global $config; if ($this->i_Type == FATAL_ERROR_DIALOG) { $display = - "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" - \"http://www.w3.org/TR/html4/transitional.dtd\"> + '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/html4/transitional.dtd"> <html><head> <title>FusionDirectory startup failed</title> - </head><body>"; + </head><body>'; if (isset($config) && is_object($config) && - $config->get_cfg_value("displayerrors") == "TRUE") { + $config->get_cfg_value('displayerrors') == 'TRUE') { list($trace,) = html_trace(); $display .= $trace; } $display .= - "<table style='width:100%; border:2px solid red;'> - <tr><td style='vertical-align:top;padding:10px'> - <img src='geticon.php?context=status&icon=dialog-error&size=32' alt='{t}Error{/t}'/> - </td><td style='width:100%'> - <b>".$this->s_Title."</b><br> - ".$this->s_Message."<br><br> - "._("Please fix the above error and reload the page.")." - </td></tr> - </table></body></html>"; + '<table style="width:100%; border:2px solid red;"> + <tr> + <td style="vertical-align:top;padding:10px"> + <img src="geticon.php?context=status&icon=dialog-error&size=32" alt="'._('Error').'"/> + </td> + <td style="width:100%"> + <b>'.$this->s_Title.'</b><br/> + '.$this->s_Message.'<br><br/> + '._('Please fix the above error and reload the page.').' + </td> + </tr> + </table></body></html>'; return $display; } else { $smarty = get_smarty(); - $smarty->assign("s_Trace", print_a($this->a_Trace, TRUE)); - $smarty->assign("i_TraceCnt", count($this->a_Trace)); - $smarty->assign("i_Type", $this->i_Type); - $smarty->assign("s_Message", $this->s_Message); - $smarty->assign("s_Title", $this->s_Title); - $smarty->assign("i_ID", $this->i_ID); - $smarty->assign("frame", FALSE); - $smarty->assign("JS", TRUE); + $smarty->assign('s_Trace', print_a($this->a_Trace, TRUE)); + $smarty->assign('i_TraceCnt', count($this->a_Trace)); + $smarty->assign('i_Type', $this->i_Type); + $smarty->assign('s_Message', $this->s_Message); + $smarty->assign('s_Title', $this->s_Title); + $smarty->assign('i_ID', $this->i_ID); + $smarty->assign('frame', FALSE); + $smarty->assign('JS', TRUE); return $smarty->fetch(get_template_path('msg_dialog.tpl')); } }