]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/doc.php
better titles in RSS
[quix0rs-gnu-social.git] / 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;
                }