From 0e039b88ac91f02c87bd8c78f7b5c78080f10861 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 28 May 2008 14:30:22 -0400 Subject: [PATCH] error in file_exists() darcs-hash:20080528183022-84dde-f5362f0284be4969e930d93408bdb9d5dec1488c.gz --- actions/doc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5