]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/cancelgroup.php
replace 'public' in documentation with 'top'
[quix0rs-gnu-social.git] / actions / cancelgroup.php
index 57df1a10a7b955470f97485998ed29440efdc3fe..3074e3ffa3141db4fb47f851a0dbc92f76fc6eea 100644 (file)
@@ -139,9 +139,9 @@ class CancelgroupAction extends Action
         parent::handle($args);
 
         try {
-            $this->profile->cancelJoinGroup($this->group);
+            $this->request->abort();
         } catch (Exception $e) {
-            common_log(LOG_ERROR, "Exception canceling group sub: " . $e->getMessage());
+            common_log(LOG_ERR, "Exception canceling group sub: " . $e->getMessage());
             // TRANS: Server error displayed when cancelling a queued group join request fails.
             // TRANS: %1$s is the leaving user's nickname, $2$s is the group nickname for which the leave failed.
             $this->serverError(sprintf(_('Could not cancel request for user %1$s to join group %2$s.'),