]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/deletegroup.php
OAuth related syntax fixes, nothing big
[quix0rs-gnu-social.git] / actions / deletegroup.php
index 637a7cba733bd7219f01391e47fe62fb604fed69..5efb5e6a919feb23b70806055b46be86a2f98958 100644 (file)
@@ -68,7 +68,7 @@ class DeletegroupAction extends RedirectingAction
         $nickname_arg = $this->trimmed('nickname');
         $id = intval($this->arg('id'));
         if ($id) {
-            $this->group = User_group::staticGet('id', $id);
+            $this->group = User_group::getKV('id', $id);
         } else if ($nickname_arg) {
             $nickname = common_canonical_nickname($nickname_arg);
 
@@ -80,7 +80,7 @@ class DeletegroupAction extends RedirectingAction
                 return false;
             }
 
-            $local = Local_group::staticGet('nickname', $nickname);
+            $local = Local_group::getKV('nickname', $nickname);
 
             if (!$local) {
                 // TRANS: Client error when trying to delete a non-local group.
@@ -88,7 +88,7 @@ class DeletegroupAction extends RedirectingAction
                 return false;
             }
 
-            $this->group = User_group::staticGet('id', $local->group_id);
+            $this->group = User_group::getKV('id', $local->group_id);
         } else {
             // TRANS: Client error when trying to delete a group without providing a nickname or ID for the group.
             $this->clientError(_('No nickname or ID.'), 404);
@@ -162,7 +162,7 @@ class DeletegroupAction extends RedirectingAction
             $this->elementStart('body');
             // @fixme add a sensible AJAX response form!
             $this->elementEnd('body');
-            $this->elementEnd('html');
+            $this->endHTML();
         } else {
             // @fixme if we could direct to the page on which this group
             // would have shown... that would be awesome