X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fdeletegroup.php;h=5efb5e6a919feb23b70806055b46be86a2f98958;hb=915d329b5a17ac9c4e582ff55672037072f73c32;hp=4e9b9851f12a6abc34ebb2180aca2502b8542fb9;hpb=0dcfcbd51732bdb73368461cc3cd5d9898de5484;p=quix0rs-gnu-social.git diff --git a/actions/deletegroup.php b/actions/deletegroup.php index 4e9b9851f1..5efb5e6a91 100644 --- a/actions/deletegroup.php +++ b/actions/deletegroup.php @@ -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 @@ -221,14 +221,14 @@ class DeletegroupAction extends RedirectingAction 'submit form_action-primary', 'no', // TRANS: Submit button title for 'No' when deleting a group. - _('Do not delete this group')); + _('Do not delete this group.')); $this->submit('form_action-yes', // TRANS: Button label on the delete group form. _m('BUTTON','Yes'), 'submit form_action-secondary', 'yes', // TRANS: Submit button title for 'Yes' when deleting a group. - _('Delete this group')); + _('Delete this group.')); $this->elementEnd('fieldset'); $this->elementEnd('form'); }