mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Use isModEnabled
This commit is contained in:
parent
0794380761
commit
93709349d2
|
|
@ -121,7 +121,7 @@ if ($socid > 0) {
|
|||
}
|
||||
llxHeader('', $title);
|
||||
|
||||
if (!empty($conf->notification->enabled)) {
|
||||
if (isModEnabled('notification')) {
|
||||
$langs->load("mails");
|
||||
}
|
||||
$head = societe_prepare_head($object);
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ if (isModEnabled('categorie')) {
|
|||
if (!empty($conf->incoterm->enabled)) {
|
||||
$langs->load("incoterm");
|
||||
}
|
||||
if (!empty($conf->notification->enabled)) {
|
||||
if (isModEnabled('notification')) {
|
||||
$langs->load("mails");
|
||||
}
|
||||
if (isModEnabled('accounting')) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ if (isModEnabled('categorie')) {
|
|||
if (!empty($conf->incoterm->enabled)) {
|
||||
$langs->load("incoterm");
|
||||
}
|
||||
if (!empty($conf->notification->enabled)) {
|
||||
if (isModEnabled('notification')) {
|
||||
$langs->load("mails");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ $help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
|
|||
llxHeader('', $title, $help_url);
|
||||
|
||||
// Show tabs
|
||||
if (!empty($conf->notification->enabled)) {
|
||||
if (isModEnabled('notification')) {
|
||||
$langs->load("mails");
|
||||
}
|
||||
$head = societe_prepare_head($object);
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ if ($object->id > 0) {
|
|||
/*
|
||||
* Affichage onglets
|
||||
*/
|
||||
if (!empty($conf->notification->enabled)) {
|
||||
if (isModEnabled('notification')) {
|
||||
$langs->load("mails");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user