Use isModEnabled

This commit is contained in:
Alexandre SPANGARO 2022-09-25 06:31:12 +02:00
parent 9e957edc3b
commit f9b1f89413
5 changed files with 6 additions and 6 deletions

View File

@ -1926,7 +1926,7 @@ if ($action == 'create') {
$action = '';
} else {
$text = $langs->trans('ConfirmValidateOrder', $newref);
if (!empty($conf->notification->enabled)) {
if (isModEnabled('notification')) {
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
$notify = new Notify($db);
$text .= '<br>';
@ -1963,7 +1963,7 @@ if ($action == 'create') {
);
}
$text = $langs->trans("ConfirmApproveThisOrder", $object->ref);
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

@ -2704,7 +2704,7 @@ if ($action == 'create') {
$action = '';
} else {
$text = $langs->trans('ConfirmValidateBill', $numref);
/*if (!empty($conf->notification->enabled))
/*if (isModEnabled('notification'))
{
require_once DOL_DOCUMENT_ROOT .'/core/class/notify.class.php';
$notify=new Notify($db);

View File

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

View File

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

View File

@ -353,7 +353,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
$text = $langs->trans('ConfirmValidateEvaluation', $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>';