]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/userbyid.php
protected handle function without args for Action
[quix0rs-gnu-social.git] / actions / userbyid.php
index f3e1556f3f143da067a6d259587b8e8edf493e47..09fb4258d9c4a3c4fd0a27813c47707d77e6042e 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /**
  * User by ID action class.
  *
@@ -62,15 +61,17 @@ 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.'));
         }