]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/userbyid.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / actions / userbyid.php
index b8ccd0108e0ab393248637a258998ef42dd63c4a..27b6b7bb5b684084b693dd750ec1fa198eb02aad 100644 (file)
@@ -49,7 +49,7 @@ class UserbyidAction extends Action
      *
      * @return boolean true
      */
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }
@@ -61,15 +61,15 @@ class UserbyidAction extends Action
      *
      * @return nothing
      */
-    function handle($args)
+    protected function handle()
     {
-        parent::handle($args);
+        parent::handle();
         $id = $this->trimmed('id');
         if (!$id) {
             // TRANS: Client error displayed trying to find a user by ID without providing an ID.
             $this->clientError(_('No ID.'));
         }
-        $user = User::staticGet($id);
+        $user = User::getKV($id);
         if (!$user) {
             // TRANS: Client error displayed trying to find a user by ID for a non-existing ID.
             $this->clientError(_('No such user.'));