exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
/**
* Show a list of direct messages from or to the authenticating user
*
if (empty($this->user)) {
// TRANS: Client error given when a user was not found (404).
- $this->clientError(_('No such user.'), 404, $this->format);
- return;
+ $this->clientError(_('No such user.'), 404);
}
$server = common_root_url();
$this->showJsonDirectMessages();
break;
default:
- // TRANS: Client error given when an API method was not found (404).
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}