]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Rename App->path to App->urlpath
[friendica.git] / mod / redir.php
index 8484b53ebab36af6b3db34e0f8e01b49305415c9..e448aa36d3f200eb52a61ebc81d103774d3460c0 100644 (file)
@@ -56,7 +56,7 @@ function redir_init(App $a) {
                }
 
                if (remote_user()) {
-                       $host = substr(System::baseUrl() . ($a->path ? '/' . $a->path : ''), strpos(System::baseUrl(), '://') + 3);
+                       $host = substr(System::baseUrl() . ($a->urlpath ? '/' . $a->urlpath : ''), strpos(System::baseUrl(), '://') + 3);
                        $remotehost = substr($contact['addr'], strpos($contact['addr'], '@') + 1);
 
                        // On a local instance we have to check if the local user has already authenticated