|
@@ -48,11 +48,14 @@ function emailing_prepare_head(Mailing $object)
|
|
|
$h++;
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- $head[$h][0] = DOL_URL_ROOT."/comm/mailing/advtargetemailing.php?id=".$object->id;
|
|
|
- $head[$h][1] = $langs->trans("MailAdvTargetRecipients");
|
|
|
- $head[$h][2] = 'advtargets';
|
|
|
- $h++;
|
|
|
+
|
|
|
+ if (! empty($conf->global->EMAILING_USE_ADVANCED_SELECTOR))
|
|
|
+ {
|
|
|
+ $head[$h][0] = DOL_URL_ROOT."/comm/mailing/advtargetemailing.php?id=".$object->id;
|
|
|
+ $head[$h][1] = $langs->trans("MailAdvTargetRecipients");
|
|
|
+ $head[$h][2] = 'advtargets';
|
|
|
+ $h++;
|
|
|
+ }
|
|
|
|
|
|
$head[$h][0] = DOL_URL_ROOT."/comm/mailing/info.php?id=".$object->id;
|
|
|
$head[$h][1] = $langs->trans("Info");
|