]> git.wh0rd.org - tt-rss.git/blobdiff - index.php
move stylesheets to css/, reference default tt-rss stylesheets from
[tt-rss.git] / index.php
index c43d2db4a55101777fc3c91de8cefbe7bea3cccb..c3fe770f59e73880b7f4daf63ec57763f717bb61 100644 (file)
--- a/index.php
+++ b/index.php
        <title>Tiny Tiny RSS</title>
 
        <?php stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
-       <?php stylesheet_tag("tt-rss.css"); ?>
-       <?php stylesheet_tag("cdm.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");
                }
        }
        ?>