]> 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 29b8b173d6c08d02af21ef0d9746a4508be5a40b..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");
                }
        }
        ?>
@@ -87,7 +87,6 @@
        foreach (array("lib/prototype.js",
                                "lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls",
                                "lib/dojo/dojo.js",
-                               "lib/dijit/dijit.js",
                                "lib/dojo/tt-rss-layer.js",
                                "errors.php?mode=js") as $jsfile) {
 
@@ -96,6 +95,7 @@
        } ?>
 
        <script type="text/javascript">
+               require({cache:{}});
        <?php
                require 'lib/jshrink/Minifier.php';