From 2d97bb260a8ede7430499d57117bb9b28f20b4a4 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 6 Feb 2007 09:59:13 +0000 Subject: [PATCH 1/1] Make useless hook useful (and rename to eliminate confusion) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12232 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 46af1418..2f653e68 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -637,6 +637,9 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message, $removed $oTemplate->assign('can_be_copied', false); } + global $null; + do_hook('read_body_menu', $null); + if ($nav_on_top) { $oTemplate->display('read_menubar_nav.tpl'); $oTemplate->display('read_menubar_buttons.tpl'); @@ -645,8 +648,6 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message, $removed $oTemplate->display('read_menubar_nav.tpl'); } - global $null; - do_hook('read_body_menu_bottom', $null); } function formatToolbar($mailbox, $passed_id, $passed_ent_id, $message, $color) { -- 2.25.1