We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 0e039b88 authored by Evan Prodromou's avatar Evan Prodromou

error in file_exists()

darcs-hash:20080528183022-84dde-f5362f0284be4969e930d93408bdb9d5dec1488c.gz
parent 0cabc703
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment