]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/default.php
Merge pull request #4455 from MrPetovan/task/4176-fix-undeclared-variables-2
[friendica.git] / view / theme / frio / php / default.php
index bcd11cc62a6e7c812a83ec7b383e898fb19fc38b..c78fdd265cda6634b36fd014c2d8d7b9ae198538 100644 (file)
@@ -10,6 +10,7 @@
 use Friendica\Core\Config;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
+use Friendica\Model\Profile;
 
 require_once 'view/theme/frio/php/frio_boot.php';
 
@@ -38,7 +39,7 @@ if (!isset($minimal)) {
        // It makes mobile Chrome UI match Frio's top bar color.
        $uid = $a->profile_uid;
        if (is_null($uid)) {
-               $uid = get_theme_uid();
+               $uid = Profile::getThemeUid();
        }
        $schema = PConfig::get($uid, 'frio', 'schema');
        if (($schema) && ($schema != '---')) {
@@ -55,8 +56,8 @@ if (!isset($minimal)) {
        echo '
                <meta name="theme-color" content="' . $nav_bg . '" />';
 
-    $is_singleuser = Config::get('system','singleuser');
-    $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
+       $is_singleuser = Config::get('system','singleuser');
+       $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
 ?>
        </head>
        <body id="top" class="mod-<?php echo $a->module." ".$is_singleuser_class;?>">