]> git.mxchange.org Git - friendica.git/blobdiff - include/redir.php
Parameter should fit ...
[friendica.git] / include / redir.php
index 692e3ad23a34d7380f5f0bf112798e2d327facbd..8c04d711ed69288168585521df6533ced96da158 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+
 function auto_redir(App $a, $contact_nick) {
 
        // prevent looping
@@ -20,7 +23,7 @@ function auto_redir(App $a, $contact_nick) {
                //
                // We also have to make sure that I'm a legitimate contact--I'm not blocked or pending.
 
-               $baseurl = App::get_baseurl();
+               $baseurl = System::baseUrl();
                $domain_st = strpos($baseurl, "://");
                if ($domain_st === false)
                        return;