summaryrefslogtreecommitdiff
path: root/actions/unsubscribe.php
diff options
context:
space:
mode:
authorcsarven <csarven@controlyourself.ca>2008-11-20 18:26:55 -0500
committercsarven <csarven@controlyourself.ca>2008-11-20 18:26:55 -0500
commit171bedf24bca7bd195dd4a8ee79cb3f04e6de5d5 (patch)
treec4b84cffe4fcd70e7906d18cab288cc221e1019a /actions/unsubscribe.php
parent41f29ab662a5587b1505303ff6d39efb4b6b77c9 (diff)
(Un)Subscribe form using ajaxForm()
darcs-hash:20081120232655-eefa4-cf6a71e246828793d3bfa413db724ab33bc58bcf.gz
Diffstat (limited to 'actions/unsubscribe.php')
-rw-r--r--actions/unsubscribe.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/unsubscribe.php b/actions/unsubscribe.php
index 562dd00fc..ad4f04a02 100644
--- a/actions/unsubscribe.php
+++ b/actions/unsubscribe.php
@@ -49,13 +49,15 @@ class UnsubscribeAction extends Action {
return;
}
+ $profile = Profile::staticGet('nickname', $other_nickname);
+
if ($this->boolean('ajax')) {
common_start_html('text/xml');
common_element_start('head');
common_element('title', null, _('Unsubscribed'));
common_element_end('head');
common_element_start('body');
- common_unsubscribe_response();
+ common_subscribe_form($profile);
common_element_end('body');
common_element_end('html');
} else {