From fd4a465c909cd4e1f976bf73c89bfb168d25d773 Mon Sep 17 00:00:00 2001 From: fhenry Date: Mon, 18 Feb 2013 15:25:13 +0100 Subject: [PATCH] Fix mass maling tabs regression --- htdocs/core/lib/emailing.lib.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/htdocs/core/lib/emailing.lib.php b/htdocs/core/lib/emailing.lib.php index e68a62a2768..394f8b72349 100644 --- a/htdocs/core/lib/emailing.lib.php +++ b/htdocs/core/lib/emailing.lib.php @@ -31,12 +31,6 @@ function emailing_prepare_head($object) { global $user, $langs, $conf; - // Show more tabs from modules - // Entries must be declared in modules descriptor with line - // $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab - // $this->tabs = array('entity:-tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab - complete_head_from_modules($conf,$langs,$object,$head,$h,'emailing'); - $h = 0; $head = array(); @@ -58,6 +52,8 @@ function emailing_prepare_head($object) $head[$h][1] = $langs->trans("Info"); $head[$h][2] = 'info'; $h++; + + complete_head_from_modules($conf,$langs,$object,$head,$h,'emailing'); complete_head_from_modules($conf,$langs,$object,$head,$h,'emailing','remove');