error in file_exists()
darcs-hash:20080528183022-84dde-f5362f0284be4969e930d93408bdb9d5dec1488c.gz
This commit is contained in:
parent
0cabc70341
commit
0e039b88ac
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user