mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:10:11 +00:00
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
This commit is contained in:
parent
2900389696
commit
50be94aa5e
23 changed files with 34 additions and 50 deletions
|
@ -17,6 +17,7 @@ use Friendica\Core\Logger;
|
|||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Protocol\ActivityNamespace;
|
||||
|
@ -76,7 +77,7 @@ class Probe
|
|||
*/
|
||||
private static function ownHost($host)
|
||||
{
|
||||
$own_host = \get_app()->getHostName();
|
||||
$own_host = DI::baseUrl()->getHostname();
|
||||
|
||||
$parts = parse_url($host);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue