mirror of
https://github.com/friendica/friendica
synced 2025-04-23 05:50: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
|
@ -3563,10 +3563,8 @@ api_register_func('api/friendships/incoming', 'api_friendships_incoming', true);
|
|||
*/
|
||||
function api_statusnet_config($type)
|
||||
{
|
||||
$a = \get_app();
|
||||
|
||||
$name = Config::get('config', 'sitename');
|
||||
$server = $a->getHostName();
|
||||
$server = DI::baseUrl()->getHostname();
|
||||
$logo = System::baseUrl() . '/images/friendica-64.png';
|
||||
$email = Config::get('config', 'admin_email');
|
||||
$closed = intval(Config::get('config', 'register_policy')) === \Friendica\Module\Register::CLOSED ? 'true' : 'false';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue