@@ 195-205 (lines=11) @@ | ||
192 | * immediately unsubscribe if you are logged in. |
|
193 | * @param HTTPRequest |
|
194 | */ |
|
195 | public function unsubscribe($request) |
|
196 | { |
|
197 | $member = Member::currentUser(); |
|
198 | if ($member) { |
|
199 | $member->removeCampaignMonitorList($this->ListID); |
|
200 | $this->Content = $member->Email." has been removed from this list: ".$this->getListTitle(); |
|
201 | } else { |
|
202 | Security::permissionFailure($this, _t("CAMPAIGNMONITORSIGNUPPAGE.LOGINFIRST", "Please login first.")); |
|
203 | } |
|
204 | return array(); |
|
205 | } |
|
206 | ||
207 | /** |
|
208 | * is this user currently signed up to one or more newsletters |
@@ 679-689 (lines=11) @@ | ||
676 | * immediately unsubscribe if you are logged in. |
|
677 | * @param HTTPRequest |
|
678 | */ |
|
679 | public function unsubscribe($request) |
|
680 | { |
|
681 | $member = Member::currentUser(); |
|
682 | if ($member) { |
|
683 | $member->removeCampaignMonitorList($this->ListID); |
|
684 | $this->Content = $member->Email." has been removed from this list: ".$this->getListTitle(); |
|
685 | } else { |
|
686 | Security::permissionFailure($this, _t("CAMPAIGNMONITORSIGNUPPAGE.LOGINFIRST", "Please login first.")); |
|
687 | } |
|
688 | return array(); |
|
689 | } |
|
690 | ||
691 | /** |
|
692 | * action |