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 919f7eb..a2bc1c2 100644 (file)
@@ -107,15 +107,16 @@ switch($right_frame) {
         break;
 }
 
         break;
 }
 
-displayHtmlHeader($org_title, '', false, true);
 $oErrorHandler->setDelayedErrors(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);
 
 $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');
 $oTemplate->display('webmail.tpl');
 
 $oTemplate->display('footer.tpl');