Convert use of common_server_error and common_user_error to methods on Action

This commit is contained in:
Evan Prodromou
2009-01-15 23:03:38 +00:00
parent eaa81d25fa
commit 4b0cf99e56
67 changed files with 275 additions and 275 deletions

View File

@@ -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);
}
}