]> git.wh0rd.org - tt-rss.git/blobdiff - prefs.php
move stylesheets to css/, reference default tt-rss stylesheets from
[tt-rss.git] / prefs.php
index 93b7cbb7899ef22eb60c356bc971fc4b2cf5fa8a..2cee534b1892ea4b586e8eb916e02b0914d30502 100644 (file)
--- a/prefs.php
+++ b/prefs.php
        <title>Tiny Tiny RSS : <?php echo __("Preferences") ?></title>
 
        <?php stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
-       <?php stylesheet_tag("tt-rss.css"); ?>
-       <?php stylesheet_tag("prefs.css"); ?>
 
        <?php if ($_SESSION["uid"]) {
                $theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
-               if ($theme) {
+               if ($theme && file_exists("themes/$theme")) {
                        stylesheet_tag("themes/$theme");
+               } else {
+                       stylesheet_tag("themes/default.css");
                }
        }
        ?>