forked from GNUsocial/gnu-social
Convert use of common_server_error and common_user_error to methods on Action
This commit is contained in:
@@ -41,7 +41,7 @@ class TwitapihelpAction extends TwitterapiAction
|
||||
print '"ok"';
|
||||
$this->end_document('json');
|
||||
} else {
|
||||
common_user_error(_('API method not found!'), $code=404);
|
||||
$this->clientError(_('API method not found!'), $code=404);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -49,7 +49,7 @@ class TwitapihelpAction extends TwitterapiAction
|
||||
function downtime_schedule($args, $apidata)
|
||||
{
|
||||
parent::handle($args);
|
||||
common_server_error(_('API method under construction.'), $code=501);
|
||||
$this->serverError(_('API method under construction.'), $code=501);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user