Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
This commit is contained in:
@@ -180,7 +180,7 @@ class Notifier
|
||||
// if $parent['wall'] == 1 we will already have the parent message in our array
|
||||
// and we will relay the whole lot.
|
||||
|
||||
$localhost = str_replace('www.','',$a->getHostName());
|
||||
$localhost = str_replace('www.','', DI::baseUrl()->getHostname());
|
||||
if (strpos($localhost,':')) {
|
||||
$localhost = substr($localhost,0,strpos($localhost,':'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user