]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/cancelsubscription.php
OAuth related syntax fixes, nothing big
[quix0rs-gnu-social.git] / actions / cancelsubscription.php
index 226fd0822e803dd44affe97ec015a1e3c45c5fe2..590fde9f2ef309c5192a8a073b23637aec7466af 100644 (file)
@@ -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)),