<?php
-
/**
* User by ID action class.
*
{
/**
* Is read only?
- *
+ *
* @return boolean true
*/
function isReadOnly($args)
- {
+ {
return true;
}
/**
* Class handler.
- *
+ *
* @param array $args array of arguments
*
* @return nothing
parent::handle($args);
$id = $this->trimmed('id');
if (!$id) {
- $this->clientError(_('No 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::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.'));
}
common_redirect($url, 303);
}
}
-