mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 18:04:26 +02:00
Move Config::get() to DI::config()->get()
This commit is contained in:
parent
c67ad31c8b
commit
1ce63185ab
38 changed files with 342 additions and 342 deletions
|
@ -89,14 +89,14 @@ function securemail_settings_post(App &$a, array &$b)
|
|||
info(DI::l10n()->t('Secure Mail Settings saved.') . EOL);
|
||||
|
||||
if ($_POST['securemail-submit'] == DI::l10n()->t('Save and send test')) {
|
||||
$sitename = Config::get('config', 'sitename');
|
||||
$sitename = DI::config()->get('config', 'sitename');
|
||||
|
||||
$hostname = DI::baseUrl()->getHostname();
|
||||
if (strpos($hostname, ':')) {
|
||||
$hostname = substr($hostname, 0, strpos($hostname, ':'));
|
||||
}
|
||||
|
||||
$sender_email = Config::get('config', 'sender_email');
|
||||
$sender_email = DI::config()->get('config', 'sender_email');
|
||||
if (empty($sender_email)) {
|
||||
$sender_email = 'noreply@' . $hostname;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue