X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fcancelsubscription.php;h=590fde9f2ef309c5192a8a073b23637aec7466af;hb=cc34bb48c7243f78e198ad4d8c1806d5fe886a81;hp=226fd0822e803dd44affe97ec015a1e3c45c5fe2;hpb=87d46e1ae5e5effcc985021ff5af3f10815f3d3c;p=quix0rs-gnu-social.git diff --git a/actions/cancelsubscription.php b/actions/cancelsubscription.php index 226fd0822e..590fde9f2e 100644 --- a/actions/cancelsubscription.php +++ b/actions/cancelsubscription.php @@ -85,7 +85,7 @@ class CancelsubscriptionAction extends Action return; } - $other = Profile::staticGet('id', $other_id); + $other = Profile::getKV('id', $other_id); if (!$other) { // TRANS: Client error displayed when trying to leave a non-existing group. @@ -114,7 +114,7 @@ class CancelsubscriptionAction extends Action $subscribe = new SubscribeForm($this, $other); $subscribe->show(); $this->elementEnd('body'); - $this->elementEnd('html'); + $this->endHTML(); } else { common_redirect(common_local_url('subscriptions', array('nickname' => $user->nickname)),