Convert use of common_server_error and common_user_error to methods on Action
This commit is contained in:
@@ -28,7 +28,7 @@ class DocAction extends Action
|
||||
$title = $this->trimmed('title');
|
||||
$filename = INSTALLDIR.'/doc/'.$title;
|
||||
if (!file_exists($filename)) {
|
||||
common_user_error(_('No such document.'));
|
||||
$this->clientError(_('No such document.'));
|
||||
return;
|
||||
}
|
||||
$c = file_get_contents($filename);
|
||||
|
||||
Reference in New Issue
Block a user