return $r[0];
}
-function api_post(&$a) {
+function api_post(App $a) {
if (! local_user()) {
notice( t('Permission denied.') . EOL);
}
-function api_content(&$a) {
+function api_content(App $a) {
if ($a->cmd=='api/oauth/authorize'){
/*
* api/oauth/authorize interact with the user. return a standard page