Use isModEnabled

This commit is contained in:
Alexandre SPANGARO 2022-09-25 06:32:24 +02:00
parent 0794380761
commit 93709349d2
5 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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')) {

View File

@ -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");
}

View File

@ -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);

View File

@ -91,7 +91,7 @@ if ($object->id > 0) {
/*
* Affichage onglets
*/
if (!empty($conf->notification->enabled)) {
if (isModEnabled('notification')) {
$langs->load("mails");
}