]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/default.php
@brief is removed completely
[friendica.git] / view / theme / frio / php / default.php
index fe08a43fb8cc49c738786386368d219ac0797a6b..2f6a6bbcfba6bdbe294a86a6ccfaae886a517cd5 100644 (file)
@@ -1,15 +1,13 @@
 <?php
 /**
  * @file view/theme/frio/php/modes/default.php
- * @brief The default site template
+ * The default site template
  */
 ?>
 <!DOCTYPE html >
 <?php
 
 use Friendica\Core\Config;
-use Friendica\Core\PConfig;
-use Friendica\Core\System;
 use Friendica\DI;
 use Friendica\Model\Profile;
 
@@ -44,14 +42,14 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
                // Add the theme color meta
                // It makes mobile Chrome UI match Frio's top bar color.
                $uid = Profile::getThemeUid($a);
-               $scheme = PConfig::get($uid, 'frio', 'scheme', PConfig::get($uid, 'frio', 'schema'));
+               $scheme = DI::pConfig()->get($uid, 'frio', 'scheme', DI::pConfig()->get($uid, 'frio', 'schema'));
                if ($scheme && is_string($scheme) && $scheme != '---') {
                        if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {
                                $schemefile = 'view/theme/frio/scheme/' . $scheme . '.php';
                                require_once $schemefile;
                        }
                } else {
-                       $nav_bg = PConfig::get($uid, 'frio', 'nav_bg');
+                       $nav_bg = DI::pConfig()->get($uid, 'frio', 'nav_bg');
                }
 
                if (empty($nav_bg)) {