From: Evan Prodromou Date: Wed, 28 May 2008 18:30:22 +0000 (-0400) Subject: error in file_exists() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e039b88ac91f02c87bd8c78f7b5c78080f10861;p=quix0rs-gnu-social.git error in file_exists() darcs-hash:20080528183022-84dde-f5362f0284be4969e930d93408bdb9d5dec1488c.gz --- diff --git a/actions/doc.php b/actions/doc.php index 0697b25d4f..0ace042466 100644 --- a/actions/doc.php +++ b/actions/doc.php @@ -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; }