2
0
forked from Wavyzz/dolibarr

add new rule

This commit is contained in:
Frédéric FRANCE
2020-05-21 09:35:30 +02:00
parent f4011520a3
commit 85625a46bb
122 changed files with 1031 additions and 2128 deletions

View File

@@ -65,8 +65,7 @@ if ($action == 'update' || $action == 'add')
if (!$error)
{
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
}
else {
} else {
setEventMessages($langs->trans("Error"), null, 'errors');
}
}
@@ -98,8 +97,7 @@ if (($action == 'testsubscribe' || $action == 'testunsubscribe') && !empty($conf
{
$langs->load("errors");
setEventMessages($langs->trans("ErrorBadEMail", $email), null, 'errors');
}
else {
} else {
include_once DOL_DOCUMENT_ROOT.'/mailmanspip/class/mailmanspip.class.php';
$mailmanspip = new MailmanSpip($db);
@@ -116,8 +114,7 @@ if (($action == 'testsubscribe' || $action == 'testunsubscribe') && !empty($conf
{
$error++;
setEventMessages($mailmanspip->error, $mailmanspip->errors, 'errors');
}
else {
} else {
setEventMessages($langs->trans("MailmanCreationSuccess"), null);
}
}
@@ -128,8 +125,7 @@ if (($action == 'testsubscribe' || $action == 'testunsubscribe') && !empty($conf
{
$error++;
setEventMessages($mailmanspip->error, $mailmanspip->errors, 'errors');
}
else {
} else {
setEventMessages($langs->trans("MailmanDeletionSuccess"), null);
}
}
@@ -207,8 +203,7 @@ if (!empty($conf->global->ADHERENT_USE_MAILMAN))
print '<div class="center"><input type="submit" class="button" value="'.$langs->trans("Update").'" name="update"></div>';
print '</form>';
}
else {
} else {
dol_fiche_head($head, 'mailman', $langs->trans("Setup"), 0, 'user');
$link = '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value=1&name=ADHERENT_USE_MAILMAN">';