mirror of
https://github.com/friendica/friendica
synced 2025-04-30 07:04:23 +02:00
Adapt BaseURL calls to new UriInterface
This commit is contained in:
parent
9e6d95284b
commit
f0c29edcde
101 changed files with 218 additions and 241 deletions
|
@ -72,7 +72,7 @@ abstract class MailBuilder
|
|||
$this->config = $config;
|
||||
$this->logger = $logger;
|
||||
|
||||
$hostname = $baseUrl->getHostname();
|
||||
$hostname = $baseUrl->getHost();
|
||||
if (strpos($hostname, ':')) {
|
||||
$hostname = substr($hostname, 0, strpos($hostname, ':'));
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ abstract class MailBuilder
|
|||
'X-Friendica-Platform' => [App::PLATFORM],
|
||||
'X-Friendica-Version' => [App::VERSION],
|
||||
'List-ID' => ['<notification.' . $hostname . '>'],
|
||||
'List-Archive' => ['<' . $baseUrl->get() . '/notifications/system>'],
|
||||
'List-Archive' => ['<' . $baseUrl . '/notifications/system>'],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -262,7 +262,7 @@ abstract class MailBuilder
|
|||
'$htmlversion' => $msgHtml,
|
||||
'$sitename' => $this->config->get('config', 'sitename'),
|
||||
'$banner' => $this->config->get('system', 'email_banner',
|
||||
$this->baseUrl->get(true) . DIRECTORY_SEPARATOR . self::DEFAULT_EMAIL_BANNER),
|
||||
$this->baseUrl . DIRECTORY_SEPARATOR . self::DEFAULT_EMAIL_BANNER),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ class Emailer
|
|||
|
||||
$this->siteEmailAddress = $this->config->get('config', 'sender_email');
|
||||
if (empty($this->siteEmailAddress)) {
|
||||
$hostname = $this->baseUrl->getHostname();
|
||||
$hostname = $this->baseUrl->getHost();
|
||||
if (strpos($hostname, ':')) {
|
||||
$hostname = substr($hostname, 0, strpos($hostname, ':'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue