Move Config::get() to DI::config()->get()

This commit is contained in:
Philipp Holzer 2020-01-19 21:21:13 +01:00
commit 6c36fd9e01
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
126 changed files with 581 additions and 596 deletions

View file

@ -33,7 +33,7 @@ function theme_post(App $a)
function theme_admin(App $a)
{
$colorset = Config::get('duepuntozero', 'colorset');
$colorset = DI::config()->get('duepuntozero', 'colorset');
$user = false;
return clean_form($a, $colorset, $user);
@ -62,7 +62,7 @@ function clean_form(App $a, &$colorset, $user)
if ($user) {
$color = DI::pConfig()->get(local_user(), 'duepuntozero', 'colorset');
} else {
$color = Config::get('duepuntozero', 'colorset');
$color = DI::config()->get('duepuntozero', 'colorset');
}
$t = Renderer::getMarkupTemplate("theme_settings.tpl");