]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #6555 from rabuzarus/20190129_-_jot_atachment_preview
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 30 Jan 2019 01:00:11 +0000 (20:00 -0500)
committerGitHub <noreply@github.com>
Wed, 30 Jan 2019 01:00:11 +0000 (20:00 -0500)
fix isssue if friendica is installed into a subdirectory

src/App.php

index 0015405c46bea5892cc634282f50c6c87d62d3f8..b910765e12f02c35719523d9c9393c6a2cfd86f6 100644 (file)
@@ -703,7 +703,7 @@ class App
                        $this->hostname = Core\Config::get('config', 'hostname');
                }
 
-               return $scheme . '://' . $this->hostname . !empty($this->getURLPath() ? '/' . $this->getURLPath() : '' );
+               return $scheme . '://' . $this->hostname . (!empty($this->getURLPath()) ? '/' . $this->getURLPath() : '' );
        }
 
        /**