X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fp.php;h=3ea810614ea4be31680c03d21c3cbb26d4747dab;hb=10ede7314136edb1c475e1af546a59ff4c5648cf;hp=f66dd43a23e41a0c74e35a79b8ba3baec3fb90dc;hpb=20043914e6111ba53df85e1efd3389c99d37302f;p=friendica.git diff --git a/mod/p.php b/mod/p.php index f66dd43a23..3ea810614e 100644 --- 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");