]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/getfile.php
AtomPub should work now, at least for post/note
[quix0rs-gnu-social.git] / actions / getfile.php
index 99ff84bcefe7edd0aa7aebbb26dd2c6ed0dc2a2c..f0c98f74167702ef6bcdc4daeffb2f5e1d67f055 100644 (file)
@@ -71,12 +71,10 @@ class GetfileAction extends Action
         if (empty($path) or !file_exists($path)) {
             // TRANS: Client error displayed when requesting a non-existent file.
             $this->clientError(_('No such file.'), 404);
-            return false;
         }
         if (!is_readable($path)) {
             // TRANS: Client error displayed when requesting a file without having read access to it.
             $this->clientError(_('Cannot read file.'), 403);
-            return false;
         }
 
         $this->path = $path;