]> git.mxchange.org Git - friendica.git/commitdiff
adapt BaseURL constructor
authorPhilipp <admin@philipp.info>
Sun, 19 Feb 2023 10:24:13 +0000 (11:24 +0100)
committerPhilipp <admin@philipp.info>
Sun, 19 Feb 2023 10:27:14 +0000 (11:27 +0100)
src/App/BaseURL.php

index 8c046fda3e06f37cc0dca4d59478bb5180e1f6a1..40303068493f9aa810ca6dba774d7a04192ca620 100644 (file)
@@ -44,11 +44,9 @@ class BaseURL extends Uri implements UriInterface
                        $url = ServerRequest::getUriFromGlobals()
                                                                ->withQuery('')
                                                                ->withPath($this->determineURLPath($server));
-
-                       parent::__construct((string)$url);
-               } else {
-                       parent::__construct($url);
                }
+
+               parent::__construct($url);
        }
 
        /**