]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix user theme ignoring active settings profile
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 24 Aug 2018 14:22:32 +0000 (17:22 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 24 Aug 2018 14:22:32 +0000 (17:22 +0300)
index.php
prefs.php

index 0280a072864938a7954348fa0bd23e9eae8cfb76..72ec23cd6eab94a7ba1e043ee650fd88b118e05c 100644 (file)
--- a/index.php
+++ b/index.php
@@ -64,7 +64,7 @@
        <?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
 
        <?php if ($_SESSION["uid"]) {
-               $theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
+               $theme = get_pref("USER_CSS_THEME");
                if ($theme && theme_valid("$theme")) {
                        echo stylesheet_tag(get_theme_path($theme));
                } else {
index 2b1270f104a6b2dfa48aadaa0718ca0c27a011f2..d2da1fdcac03a2a5908fe1788a84ef42508661a4 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -40,7 +40,7 @@
        <?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
 
        <?php if ($_SESSION["uid"]) {
-               $theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
+               $theme = get_pref("USER_CSS_THEME");
                if ($theme && theme_valid("$theme")) {
                        echo stylesheet_tag(get_theme_path($theme));
                } else {