Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()

This commit is contained in:
nupplaPhil 2019-12-16 00:47:24 +01:00
parent 99db3452e3
commit 0775c28854
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
7 changed files with 13 additions and 9 deletions

View file

@ -13,6 +13,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Util\Emailer;
require_once __DIR__ . '/vendor/autoload.php';
@ -92,7 +93,7 @@ function securemail_settings_post(App &$a, array &$b)
if ($_POST['securemail-submit'] == L10n::t('Save and send test')) {
$sitename = Config::get('config', 'sitename');
$hostname = $a->getHostName();
$hostname = DI::baseUrl()->getHostname();
if (strpos($hostname, ':')) {
$hostname = substr($hostname, 0, strpos($hostname, ':'));
}