exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
/**
* Deletes one of the authenticating user's statuses (notices).
*
*
* @return boolean success flag
*/
- function prepare($args)
+ function prepare(array $args=array())
{
parent::prepare($args);
$this->notice_id = (int)$this->arg('id');
}
- $this->notice = Notice::staticGet((int)$this->notice_id);
+ $this->notice = Notice::getKV((int)$this->notice_id);
return true;
}
*
* @return void
*/
- function handle($args)
+ function handle(array $args=array())
{
parent::handle($args);
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method deleting a status.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404
);