<?php
-
/**
* User by ID action class.
*
parent::handle($args);
$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);
if (!$user) {
+ // TRANS: Client error displayed trying to find a user by ID for a non-existing ID.
$this->clientError(_('No such user.'));
}