Fix login error for users with no theme
[squirrelmail.git] / src / webmail.php
index 919f7ebf77561f94de4843c68b95b2ef48999915..442a0d82c9d353c50e481806f7f4b1ded721a586 100644 (file)
@@ -6,12 +6,15 @@
  * shown can be given as parameters. If the user is not logged in
  * this file will verify username and password.
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  */
 
+/** This is the webmail page */
+define('PAGE_NAME', 'webmail');
+
 /**
  * Include the SquirrelMail initialization file.
  */
@@ -107,15 +110,15 @@ switch($right_frame) {
         break;
 }
 
-displayHtmlHeader($org_title, '', false, true);
 $oErrorHandler->setDelayedErrors(true);
 
-do_hook('webmail_top', $null);
-
 $oTemplate->assign('nav_size', $left_size);
 $oTemplate->assign('nav_on_left', $location_of_bar=='left');
 $oTemplate->assign('right_frame_url', $right_frame_url);
 
+do_hook('webmail_top', $null);
+
+displayHtmlHeader($org_title, '', false, true);
+
 $oTemplate->display('webmail.tpl');
 
-$oTemplate->display('footer.tpl');