X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fpage_header.php;h=93b7d8b3af2a26820d845fb9bf9d2f9bbfbc2d1c;hp=25c1ff30a1c0c300de8d6dbccde2c914382211c4;hb=81de00c0eba6c2f4aebcfdd24124be99a3996871;hpb=bda07b93ab2b94665bb7647a0694dbdd60aba2af diff --git a/functions/page_header.php b/functions/page_header.php index 25c1ff30..93b7d8b3 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -34,7 +34,7 @@ include_once(SM_PATH . 'class/template/template.class.php'); * @return void */ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE, $frames = FALSE ) { - global $squirrelmail_language, $sTplDir; + global $squirrelmail_language, $sTplDir, $oErroHandler; if ( !sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) { global $base_uri; @@ -112,6 +112,9 @@ ECHO; /* this is used to check elsewhere whether we should call this function */ $pageheader_sent = TRUE; + if (isset($oErrorHandler)) { + $oErrorHander->HeaderSent(); + } } /**