]> git.mxchange.org Git - friendica.git/blobdiff - src/App/BaseURL.php
Merge pull request #8044 from annando/contact-adding
[friendica.git] / src / App / BaseURL.php
index ea7d9ec74af351b0932025d77cd48073d6fc1c80..6b79fad4662e6c0c88ad6bb18d457c79ad033e16 100644 (file)
@@ -435,4 +435,12 @@ class BaseURL
                $redirectTo = $this->get($ssl) . '/' . ltrim($toUrl, '/');
                System::externalRedirect($redirectTo);
        }
+
+       /**
+        * Returns the base url as string
+        */
+       public function __toString()
+       {
+               return $this->get();
+       }
 }