]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/duepuntozero/theme.php
simplify code, remove debug output
[friendica.git] / view / theme / duepuntozero / theme.php
index 327a1e73ba8773dc41635f571fd85e346c8d8df9..985e062ac513f03e8ec86c4949f239a1503b07c1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -34,7 +34,7 @@ function duepuntozero_init(App $a) {
        $colorset = null;
 
        if (DI::mode()->has(App\Mode::MAINTENANCEDISABLED)) {
-               $colorset = DI::pConfig()->get(local_user(), 'duepuntozero', 'colorset');
+               $colorset = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'duepuntozero', 'colorset');
                if (!$colorset)
                        $colorset = DI::config()->get('duepuntozero', 'colorset');          // user setting have priority, then node settings
        }