Merge pull request #448 from marcosgdf/minor

Fixed PHP warning on MailmanSPIP module
This commit is contained in:
Regis Houssin 2012-10-15 00:06:13 -07:00
commit d40a862203

View File

@ -24,27 +24,24 @@
/** /**
* Return array head with list of tabs to view object informations * Return array head with list of tabs to view object informations
* *
* @param Object $object Member * @return array Tabs of the module
* @return array head
*/ */
function mailmanspip_admin_prepare_head($object) function mailmanspip_admin_prepare_head()
{ {
global $langs, $conf, $user; global $langs;
$h = 0; return array(
$head = array(); array(
DOL_URL_ROOT.'/adherents/admin/mailman.php',
$head[$h][0] = DOL_URL_ROOT.'/adherents/admin/mailman.php'; $langs->trans('Mailman'),
$head[$h][1] = $langs->trans("Mailman"); 'mailman'
$head[$h][2] = 'mailman'; ),
$h++; array(
DOL_URL_ROOT.'/adherents/admin/spip.php',
$head[$h][0] = DOL_URL_ROOT.'/adherents/admin/spip.php'; $langs->trans('SPIP'),
$head[$h][1] = $langs->trans("SPIP"); 'spip'
$head[$h][2] = 'spip'; )
$h++; );
return $head;
} }
?> ?>