]> git.wh0rd.org Git - tt-rss.git/commitdiff
update previous to not die on errors
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 24 Aug 2018 14:23:46 +0000 (17:23 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 24 Aug 2018 14:23:46 +0000 (17:23 +0300)
index.php
prefs.php

index 72ec23cd6eab94a7ba1e043ee650fd88b118e05c..f3e5928dd65c3d6e7b6f6a8bcc38818e31441838 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");
+               $theme = get_pref("USER_CSS_THEME", false, false);
                if ($theme && theme_valid("$theme")) {
                        echo stylesheet_tag(get_theme_path($theme));
                } else {
index d2da1fdcac03a2a5908fe1788a84ef42508661a4..9f2b2e43b743a2cd3b1d886827986196489d6012 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");
+               $theme = get_pref("USER_CSS_THEME", false, false);
                if ($theme && theme_valid("$theme")) {
                        echo stylesheet_tag(get_theme_path($theme));
                } else {