]> git.mxchange.org Git - friendica.git/blobdiff - mod/p.php
update for ES thx Albert
[friendica.git] / mod / p.php
index f66dd43a23e41a0c74e35a79b8ba3baec3fb90dc..3ea810614ea4be31680c03d21c3cbb26d4747dab 100644 (file)
--- a/mod/p.php
+++ b/mod/p.php
@@ -4,6 +4,7 @@ This file is part of the Diaspora protocol. It is used for fetching single publi
 */
 
 use Friendica\App;
+use Friendica\Core\System;
 
 require_once("include/diaspora.php");
 
@@ -34,7 +35,7 @@ function p_init($a){
                        $parts = parse_url($r[0]["author-link"]);
                        $host = $parts["scheme"]."://".$parts["host"];
 
-                       if (normalise_link($host) != normalise_link(App::get_baseurl())) {
+                       if (normalise_link($host) != normalise_link(System::baseUrl())) {
                                $location = $host."/p/".urlencode($guid).".xml";
 
                                header("HTTP/1.1 301 Moved Permanently");