From f6b68e062c88ea1db25f76f60dc6a8bf07d47b45 Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 6 Mar 2007 15:43:19 +0000 Subject: [PATCH] use org_title instead of "SquirrelMail" in error_box from Nasmail git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12318 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/display_messages.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) } -- 2.25.1