Use isModEnabled
This commit is contained in:
parent
3cf2048518
commit
4fd31ff59a
@ -143,7 +143,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 = targetPrepareHead($object);
|
||||
|
||||
@ -293,7 +293,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
||||
// Confirmation of action xxxx (You can use it for xxx = 'close', xxx = 'reopen', ...)
|
||||
if ($action == 'xxx') {
|
||||
$text = $langs->trans('ConfirmActionTarget', $object->ref);
|
||||
/*if (!empty($conf->notification->enabled))
|
||||
/*if (isModEnabled('notification'))
|
||||
{
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/notify.class.php';
|
||||
$notify = new Notify($db);
|
||||
|
||||
@ -130,7 +130,7 @@ if ($object->id > 0) {
|
||||
$help_url = 'EN:Module_Workstation';
|
||||
llxHeader('', $title, $help_url);
|
||||
|
||||
if (!empty($conf->notification->enabled)) {
|
||||
if (isModEnabled('notification')) {
|
||||
$langs->load("mails");
|
||||
}
|
||||
$head = workstationPrepareHead($object);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user