From: rabuzarus Date: Wed, 30 Jan 2019 00:00:40 +0000 (+0100) Subject: fix isssue if friendica is installed into a subdirectory X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0993f3e6ef085464e1d2602db3b075fb743c53cf;p=friendica.git 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() : '' ); } /**