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

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