X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fdisplay_messages.php;h=643aeb6df50b0323300501f67acdc86e390e78e8;hb=f6b68e062c88ea1db25f76f60dc6a8bf07d47b45;hp=6cdfac59fb7e15719c23e22f49febe86bfcffdea;hpb=87d2ad512ec9a0dbfd15efdb10e3d9d700f32073;p=squirrelmail.git diff --git a/functions/display_messages.php b/functions/display_messages.php index 6cdfac59..643aeb6d 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -141,10 +141,11 @@ function logout_error( $errString, $errTitle = '' ) { * @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! // @@ -153,7 +154,7 @@ function error_box($string, $link=NULL, $return_output=FALSE) { // 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) }