]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
error in file_exists()
authorEvan Prodromou <evan@prodromou.name>
Wed, 28 May 2008 18:30:22 +0000 (14:30 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 28 May 2008 18:30:22 +0000 (14:30 -0400)
darcs-hash:20080528183022-84dde-f5362f0284be4969e930d93408bdb9d5dec1488c.gz

actions/doc.php

index 0697b25d4f092e224b4ec6a607f1cf6b153b2381..0ace0424668f24f837b20fdba73412359747bafc 100644 (file)
@@ -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;
                }