]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apiusershow.php
Updating Janrain OpenID auth library
[quix0rs-gnu-social.git] / actions / apiusershow.php
index fbd4d605988604e03c23e9505165aca8d19e1874..0ea0b2e72fd93643eea57eacaadcfb1417ae30d8 100644 (file)
@@ -68,7 +68,7 @@ class ApiUserShowAction extends ApiPrivateAuthAction
         // XXX: email field deprecated in Twitter's API
 
         if (!empty($email)) {
-            $this->user = User::staticGet('email', $email);
+            $this->user = User::getKV('email', $email);
         } else {
             $this->user = $this->getTargetUser($this->arg('id'));
         }
@@ -96,7 +96,7 @@ class ApiUserShowAction extends ApiPrivateAuthAction
         }
 
         if (!in_array($this->format, array('xml', 'json'))) {
-            // TRANS: Client error displayed when trying to handle an unknown API method.
+            // TRANS: Client error displayed when coming across a non-supported API method.
             $this->clientError(_('API method not found.'), $code = 404);
             return;
         }
@@ -104,7 +104,7 @@ class ApiUserShowAction extends ApiPrivateAuthAction
         $profile = $this->user->getProfile();
 
         if (empty($profile)) {
-            // TRANS: Client error displayed when requesting user information for a user without a profile.
+            // TRANS: Error message displayed when referring to a user without a profile.
             $this->clientError(_('User has no profile.'));
             return;
         }