Use isModEnabled

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

View File

@ -116,7 +116,7 @@ if ($object->id > 0) {
$help_url = '';
llxHeader('', $title, $help_url);
if (!empty($conf->notification->enabled)) $langs->load("mails");
if (isModEnabled('notification')) $langs->load("mails");
$head = stocktransferPrepareHead($object);

View File

@ -1323,7 +1323,7 @@ if ($action == 'create') {
$text = $langs->trans("ConfirmValidateReception", $numref);
if (!empty($conf->notification->enabled)) {
if (isModEnabled('notification')) {
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
$notify = new Notify($db);
$text .= '<br>';

View File

@ -129,7 +129,7 @@ if ($object->id > 0) {
$help_url = 'Module_Agenda_En';
llxHeader('', $title, $help_url);
if (!empty($conf->notification->enabled)) {
if (isModEnabled('notification')) {
$langs->load("mails");
}
$head = recruitmentCandidaturePrepareHead($object);

View File

@ -129,7 +129,7 @@ if ($object->id > 0) {
$help_url = '';
llxHeader('', $title, $help_url);
if (!empty($conf->notification->enabled)) {
if (isModEnabled('notification')) {
$langs->load("mails");
}
$head = recruitmentjobpositionPrepareHead($object);

View File

@ -285,7 +285,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
array('type' => 'text', 'name' => 'note_private', 'label' => $langs->trans("Note"), 'value' => '') // Field to complete private note (not replace)
);
/*if (!empty($conf->notification->enabled))
/*if (isModEnabled('notification'))
{
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
$notify = new Notify($db);