]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/scheme.php
Happy New Year 2023!
[friendica.git] / view / theme / frio / php / scheme.php
index 26c3588776deee782b0969326c598d9e353d9726..5140f33b2c71085b191c12b13f90d01681d9325b 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,6 @@
  *    'overwrites' => Variables which overwriting custom settings
  */
 
-use Friendica\Core\Session;
 use Friendica\DI;
 use Friendica\Util\Strings;
 
@@ -43,7 +42,7 @@ function get_scheme_info($scheme)
        $theme = DI::app()->getCurrentTheme();
        $themepath = 'view/theme/' . $theme . '/';
        if (empty($scheme)) {
-               $scheme = DI::pConfig()->get(Session::getLocalUser(), 'frio', 'scheme', DI::pConfig()->get(Session::getLocalUser(), 'frio', 'schema', '---'));
+               $scheme = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'frio', 'scheme', DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'frio', 'schema', '---'));
        }
 
        $scheme = Strings::sanitizeFilePathItem($scheme);