mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Move Config::set() to DI::config()->set()
This commit is contained in:
parent
1ce63185ab
commit
75143e27b5
25 changed files with 75 additions and 75 deletions
|
@ -220,10 +220,10 @@ function openstreetmap_addon_admin_post(&$a)
|
|||
$zoom = ($_POST['zoom'] ?? '') ?: OSM_ZOOM;
|
||||
$marker = ($_POST['marker'] ?? '') ?: OSM_MARKER;
|
||||
|
||||
Config::set('openstreetmap', 'tmsserver', $urltms);
|
||||
Config::set('openstreetmap', 'nomserver', $urlnom);
|
||||
Config::set('openstreetmap', 'zoom', $zoom);
|
||||
Config::set('openstreetmap', 'marker', $marker);
|
||||
DI::config()->set('openstreetmap', 'tmsserver', $urltms);
|
||||
DI::config()->set('openstreetmap', 'nomserver', $urlnom);
|
||||
DI::config()->set('openstreetmap', 'zoom', $zoom);
|
||||
DI::config()->set('openstreetmap', 'marker', $marker);
|
||||
|
||||
info(DI::l10n()->t('Settings updated.') . EOL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue