From: pdontthink Date: Mon, 11 Dec 2006 21:07:32 +0000 (+0000) Subject: Better hook placement X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1411972c35809b94d9a499545e82e8a0b7a749b6;p=squirrelmail.git Better hook placement git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12007 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/webmail.php b/src/webmail.php index 919f7ebf..a2bc1c2e 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -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');