]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/approvesub.php
Updating Janrain OpenID auth library
[quix0rs-gnu-social.git] / actions / approvesub.php
index d30da25d32b3eea19d1cdbb459b28256cd8172a0..89368686a9eac6afb187c05d71d050140903f112 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * StatusNet, the distributed open-source microblogging tool
  *
- * Leave a group
+ * Approve group subscription request
  *
  * PHP version 5
  *
@@ -61,7 +61,7 @@ class ApprovesubAction extends Action
             return false;
         }
         if ($this->arg('profile_id')) {
-            $this->profile = Profile::staticGet('id', $this->arg('profile_id'));
+            $this->profile = Profile::getKV('id', $this->arg('profile_id'));
         } else {
             // TRANS: Client error displayed trying to approve subscriptionswithout specifying a profile to approve.
             $this->clientError(_('Must specify a profile.'));
@@ -73,6 +73,7 @@ class ApprovesubAction extends Action
 
         if (empty($this->request)) {
             // TRANS: Client error displayed trying to approve subscription for a non-existing request.
+            // TRANS: %s is a user nickname.
             $this->clientError(sprintf(_('%s is not in the moderation queue for your subscriptions.'), $this->profile->nickname), 403);
         }