From: Hypolite Petovan Date: Wed, 30 Jan 2019 01:00:11 +0000 (-0500) Subject: Merge pull request #6555 from rabuzarus/20190129_-_jot_atachment_preview X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2d6f658c33f73fbf1a4c5c63e7ce9f835903e880;hp=2bd62bfdea6ba720c43683a9b747f9c10d389084;p=friendica.git Merge pull request #6555 from rabuzarus/20190129_-_jot_atachment_preview fix isssue if friendica is installed into a subdirectory --- diff --git a/src/App.php b/src/App.php index 0015405c46..b910765e12 100644 --- a/src/App.php +++ b/src/App.php @@ -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() : '' ); } /**