mirror of
https://github.com/friendica/friendica
synced 2025-04-22 08:30:10 +00:00
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get()
This commit is contained in:
parent
e57a87f224
commit
e944d7bed6
43 changed files with 76 additions and 120 deletions
|
@ -47,7 +47,7 @@ class Fetch extends BaseModule
|
|||
}
|
||||
$host = $parts["scheme"] . "://" . $parts["host"];
|
||||
|
||||
if (Strings::normaliseLink($host) != Strings::normaliseLink($app->getBaseURL())) {
|
||||
if (Strings::normaliseLink($host) != Strings::normaliseLink(DI::baseUrl()->get())) {
|
||||
$location = $host . "/fetch/" . $app->argv[1] . "/" . urlencode($guid);
|
||||
System::externalRedirect($location, 301);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue