Move Config::get() to DI::config()->get()
This commit is contained in:
parent
5d294e8be8
commit
6c36fd9e01
126 changed files with 581 additions and 596 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue