exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
/**
* Check a user's credentials. Returns an HTTP 200 OK response code and a
* representation of the requesting user if authentication was successful;
parent::handle($args);
if (!in_array($this->format, array('xml', 'json'))) {
- // TRANS: Client error displayed trying to execute an unknown API method verifying user credentials.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), $code = 404);
return;
}