summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4eb1f02)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
+ * Newsletter:
+ - #1524: Fixes NL unsubscription when not loggued on the site -JAC
+
* Search:
- #1520: Fixes deltaten -XEL
* Search:
- #1520: Fixes deltaten -XEL
- $page->changeTpl('newsletter/index.tpl');
- $page->setTitle('Lettres mensuelles');
-
$hash = ($hash == 'nohash') ? null : $hash;
switch ($action) {
$hash = ($hash == 'nohash') ? null : $hash;
switch ($action) {
- case 'out': $nl->unsubscribe($issue_id, $hash, $hash != null); break;
+ case 'out':
+ $success = $nl->unsubscribe($issue_id, $hash, $hash != null);
+ if (!is_null($hash)) {
+ if ($success) {
+ $page->trigSuccess('La désinscription a été effectuée avec succès.');
+ } else {
+ $page->trigError("La désinscription n'a été pas pu être effectuée.");
+ }
+ return;
+ }
+ break;
case 'in': $nl->subscribe(); break;
default: ;
}
case 'in': $nl->subscribe(); break;
default: ;
}
+ $page->changeTpl('newsletter/index.tpl');
+ $page->setTitle('Lettres mensuelles');
+
$page->assign_by_ref('nl', $nl);
$page->assign('nls', $nl->subscriptionState());
$page->assign('nl_list', $nl->listSentIssues(true));
$page->assign_by_ref('nl', $nl);
$page->assign('nls', $nl->subscriptionState());
$page->assign('nl_list', $nl->listSentIssues(true));