]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/default.php
Merge pull request #6527 from Ixiter/develop-theme-frio
[friendica.git] / view / theme / frio / php / default.php
index ce7fd4d777ef39539aee13839b1041a79348fcac..b9600cc22e3b991f84d882ed2b519a8e1feef641 100644 (file)
@@ -42,10 +42,7 @@ $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 = $a->profile_uid;
-               if (is_null($uid)) {
-                       $uid = Profile::getThemeUid();
-               }
+               $uid = Profile::getThemeUid($a);
                $scheme = PConfig::get($uid, 'frio', 'scheme', PConfig::get($uid, 'frio', 'schema'));
                if ($scheme && ($scheme != '---')) {
                        if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {