summaryrefslogtreecommitdiff
path: root/actions/doc.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-28 14:30:22 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-28 14:30:22 -0400
commit0e039b88ac91f02c87bd8c78f7b5c78080f10861 (patch)
tree2c80fa73176f9b4600d7ba09882591cc92a20441 /actions/doc.php
parent0cabc70341727a2e017674278a33ddc970e3e2ce (diff)
error in file_exists()
darcs-hash:20080528183022-84dde-f5362f0284be4969e930d93408bdb9d5dec1488c.gz
Diffstat (limited to 'actions/doc.php')
-rw-r--r--actions/doc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/doc.php b/actions/doc.php
index 0697b25d4..0ace04246 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;
}