X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fp.php;h=3ea810614ea4be31680c03d21c3cbb26d4747dab;hb=d0dfcc71a82ac423db68a12fd2eaf6d13cb18e1f;hp=3cd7a9eb7d4676b7c631014e581d50a9eab17943;hpb=722b18ead7adf0a56f1af3f5af5070540ccd9fc7;p=friendica.git diff --git a/mod/p.php b/mod/p.php index 3cd7a9eb7d..3ea810614e 100644 --- a/mod/p.php +++ b/mod/p.php @@ -2,6 +2,10 @@ /* This file is part of the Diaspora protocol. It is used for fetching single public posts. */ + +use Friendica\App; +use Friendica\Core\System; + require_once("include/diaspora.php"); function p_init($a){ @@ -31,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");