/* As of 1.5.2, plugin parameters are combined into one array;
plugins on this hook must be updated */
- do_hook('logout_error', $temp=array(&$errString, &$errTitle, &$login_link));
+ $temp = array(&$errString, &$errTitle, &$login_link);
+ do_hook('logout_error', $temp);
if ( $errTitle == '' ) {
$errTitle = $errString;
$sm_attribute_str = '';
if (isset($hide_sm_attributions) && !$hide_sm_attributions) {
- $sm_attribute_str = _("SquirrelMail Webmail Application") . "\n"
+ $sm_attribute_str = _("SquirrelMail Webmail") . "\n"
. _("By the SquirrelMail Project Team");
}
* @since 1.3.2
*/
function error_box($string, $link=NULL, $return_output=FALSE) {
- global $pageheader_sent, $oTemplate;
+ global $pageheader_sent, $oTemplate, $org_title;
$err = _("ERROR");
do_hook('error_box', $string);
+ if ( !isset($org_title) ) $org_title = 'SquirrelMail';
// check if the page header has been sent; if not, send it!
//
// to worry about page headers in that case)
//
if (!$return_output && empty($pageheader_sent)) {
- displayHtmlHeader('SquirrelMail: '.$err);
+ displayHtmlHeader($org_title . ': '.$err);
$pageheader_sent = TRUE;
echo create_body(); // this is template-safe (see create_body() function)
}