]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/duepuntozero/config.php
Fix new private message recipient input
[friendica.git] / view / theme / duepuntozero / config.php
index 4b8852d7cb58b4346f7cd26ceb1fd38e1eead1ef..7d2c3f425685ebfdcab4c50689dab3cdc2ba6c84 100644 (file)
@@ -4,7 +4,6 @@
  */
 
 use Friendica\App;
-use Friendica\Core\Config;
 use Friendica\Core\Renderer;
 use Friendica\DI;
 
@@ -33,7 +32,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);
@@ -42,7 +41,7 @@ function theme_admin(App $a)
 function theme_admin_post(App $a)
 {
        if (isset($_POST['duepuntozero-settings-submit'])) {
-               Config::set('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
+               DI::config()->set('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
        }
 }
 
@@ -62,7 +61,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");