mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
This commit is contained in:
parent
99db3452e3
commit
0775c28854
7 changed files with 13 additions and 9 deletions
|
@ -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, ':'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue