error in file_exists()

darcs-hash:20080528183022-84dde-f5362f0284be4969e930d93408bdb9d5dec1488c.gz
This commit is contained in:
Evan Prodromou 2008-05-28 14:30:22 -04:00
parent 0cabc70341
commit 0e039b88ac
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class DocAction extends Action {
parent::handle($args);
$title = $this->trimmed('title');
$filename = INSTALLDIR.'/doc/'.$title;
if (!file_exists()) {
if (!file_exists($filename)) {
common_user_error(_t('No such document.'));
return;
}