Better hook placement
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 11 Dec 2006 21:07:32 +0000 (21:07 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 11 Dec 2006 21:07:32 +0000 (21:07 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12007 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/webmail.php

index 919f7ebf77561f94de4843c68b95b2ef48999915..a2bc1c2e670d2454e360ec9c7ab06614331ad0ba 100644 (file)
@@ -107,15 +107,16 @@ 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');