Use isModEnabled
This commit is contained in:
parent
be55f63b63
commit
0794380761
@ -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);
|
||||
|
||||
|
||||
|
||||
@ -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>';
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user