X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsubscribe.php;h=0bc522867e39ca4a62ffd12a5ebf417a85441ba5;hb=b4e649fe906a793cd5e62d6390065ea5d41c40db;hp=b6f03f0f133c70ae2beba9384ab793680c9c4699;hpb=12c475c101c070cbcc4c63f7b1049f6d3282b9ee;p=quix0rs-gnu-social.git diff --git a/actions/subscribe.php b/actions/subscribe.php index b6f03f0f13..0bc522867e 100644 --- a/actions/subscribe.php +++ b/actions/subscribe.php @@ -64,17 +64,19 @@ class SubscribeAction extends Action } if ($this->boolean('ajax')) { - common_start_html('text/xml;charset=utf-8', true); + $this->startHTML('text/xml;charset=utf-8'); $this->elementStart('head'); $this->element('title', null, _('Subscribed')); $this->elementEnd('head'); $this->elementStart('body'); - common_unsubscribe_form($other->getProfile()); + $unsubscribe = new UnsubscribeForm($this, $other->getProfile()); + $unsubscribe->show(); $this->elementEnd('body'); $this->elementEnd('html'); } else { common_redirect(common_local_url('subscriptions', array('nickname' => - $user->nickname))); + $user->nickname)), + 303); } } }