Use isModEnabled
This commit is contained in:
parent
9e957edc3b
commit
f9b1f89413
@ -1926,7 +1926,7 @@ if ($action == 'create') {
|
|||||||
$action = '';
|
$action = '';
|
||||||
} else {
|
} else {
|
||||||
$text = $langs->trans('ConfirmValidateOrder', $newref);
|
$text = $langs->trans('ConfirmValidateOrder', $newref);
|
||||||
if (!empty($conf->notification->enabled)) {
|
if (isModEnabled('notification')) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
|
||||||
$notify = new Notify($db);
|
$notify = new Notify($db);
|
||||||
$text .= '<br>';
|
$text .= '<br>';
|
||||||
@ -1963,7 +1963,7 @@ if ($action == 'create') {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
$text = $langs->trans("ConfirmApproveThisOrder", $object->ref);
|
$text = $langs->trans("ConfirmApproveThisOrder", $object->ref);
|
||||||
if (!empty($conf->notification->enabled)) {
|
if (isModEnabled('notification')) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
|
||||||
$notify = new Notify($db);
|
$notify = new Notify($db);
|
||||||
$text .= '<br>';
|
$text .= '<br>';
|
||||||
|
|||||||
@ -2704,7 +2704,7 @@ if ($action == 'create') {
|
|||||||
$action = '';
|
$action = '';
|
||||||
} else {
|
} else {
|
||||||
$text = $langs->trans('ConfirmValidateBill', $numref);
|
$text = $langs->trans('ConfirmValidateBill', $numref);
|
||||||
/*if (!empty($conf->notification->enabled))
|
/*if (isModEnabled('notification'))
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT .'/core/class/notify.class.php';
|
require_once DOL_DOCUMENT_ROOT .'/core/class/notify.class.php';
|
||||||
$notify=new Notify($db);
|
$notify=new Notify($db);
|
||||||
|
|||||||
@ -128,7 +128,7 @@ if ($object->id > 0) {
|
|||||||
$help_url = '';
|
$help_url = '';
|
||||||
llxHeader('', $title, $help_url);
|
llxHeader('', $title, $help_url);
|
||||||
|
|
||||||
if (!empty($conf->notification->enabled)) {
|
if (isModEnabled('notification')) {
|
||||||
$langs->load("mails");
|
$langs->load("mails");
|
||||||
}
|
}
|
||||||
$head = establishment_prepare_head($object);
|
$head = establishment_prepare_head($object);
|
||||||
|
|||||||
@ -138,7 +138,7 @@ if ($object->id > 0) {
|
|||||||
$help_url = 'EN:Module_Agenda_En';
|
$help_url = 'EN:Module_Agenda_En';
|
||||||
llxHeader('', $title, $help_url);
|
llxHeader('', $title, $help_url);
|
||||||
|
|
||||||
if (!empty($conf->notification->enabled)) {
|
if (isModEnabled('notification')) {
|
||||||
$langs->load("mails");
|
$langs->load("mails");
|
||||||
}
|
}
|
||||||
$head = evaluationPrepareHead($object);
|
$head = evaluationPrepareHead($object);
|
||||||
|
|||||||
@ -353,7 +353,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
$text = $langs->trans('ConfirmValidateEvaluation', $numref);
|
$text = $langs->trans('ConfirmValidateEvaluation', $numref);
|
||||||
if (!empty($conf->notification->enabled)) {
|
if (isModEnabled('notification')) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
|
||||||
$notify = new Notify($db);
|
$notify = new Notify($db);
|
||||||
$text .= '<br>';
|
$text .= '<br>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user