Browse Source

Fixed typo in error handling in displayHTMLHeader()

stevetruckstuff 19 years ago
parent
commit
92c4b751b7
1 changed files with 2 additions and 3 deletions
  1. 2 3
      functions/page_header.php

+ 2 - 3
functions/page_header.php

@@ -27,7 +27,7 @@ include_once(SM_PATH . 'functions/imap_mailbox.php');
  * @return void
  */
 function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE, $frames = FALSE ) {
-    global $squirrelmail_language, $sTplDir, $oErroHandler;
+    global $squirrelmail_language, $sTplDir, $oErrorHandler;
 
     if ( !sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) {
         global $base_uri;
@@ -64,7 +64,6 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
         .(!empty($used_fontsize) ? '&fontsize='.$used_fontsize : '')
         .(!empty($text_direction) ? '&dir='.$text_direction : '')."\">\n";
 
-
     // load custom style sheet (deprecated)
     if ( ! empty($theme_css) ) {
         echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$theme_css\">\n";
@@ -107,7 +106,7 @@ ECHO;
     /* this is used to check elsewhere whether we should call this function */
     $pageheader_sent = TRUE;
     if (isset($oErrorHandler)) {
-        $oErrorHander->HeaderSent();
+        $oErrorHandler->HeaderSent();
     }
 }