Use isModEnabled
This commit is contained in:
parent
aec9a7a60d
commit
fc9e6c541e
@ -2209,7 +2209,7 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
$formquestion = array_merge($formquestion, array(
|
$formquestion = array_merge($formquestion, array(
|
||||||
@ -2248,7 +2248,7 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$text = $langs->trans('ConfirmValidateProp', $numref);
|
$text = $langs->trans('ConfirmValidateProp', $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>';
|
||||||
|
|||||||
@ -2062,7 +2062,7 @@ if ($action == 'create' && $usercancreate) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$text = $langs->trans('ConfirmValidateOrder', $numref);
|
$text = $langs->trans('ConfirmValidateOrder', $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>';
|
||||||
|
|||||||
@ -4119,7 +4119,7 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$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);
|
||||||
$text .= '<br>';
|
$text .= '<br>';
|
||||||
|
|||||||
@ -87,7 +87,7 @@ if ($id > 0) {
|
|||||||
/*
|
/*
|
||||||
* Affichage onglets
|
* Affichage onglets
|
||||||
*/
|
*/
|
||||||
if (!empty($conf->notification->enabled)) {
|
if (isModEnabled('notification')) {
|
||||||
$langs->load("mails");
|
$langs->load("mails");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -68,7 +68,7 @@ if ($id) {
|
|||||||
}
|
}
|
||||||
llxHeader('', $title);
|
llxHeader('', $title);
|
||||||
|
|
||||||
if (!empty($conf->notification->enabled)) {
|
if (isModEnabled('notification')) {
|
||||||
$langs->load("mails");
|
$langs->load("mails");
|
||||||
}
|
}
|
||||||
$head = contact_prepare_head($object);
|
$head = contact_prepare_head($object);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user