diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -56,14 +56,15 @@ <head> <title>Tiny Tiny RSS</title> - <?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?> - <?php echo stylesheet_tag("tt-rss.css"); ?> - <?php echo stylesheet_tag("cdm.css"); ?> + <?php stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?> + <?php stylesheet_tag("css/layout.css"); ?> <?php if ($_SESSION["uid"]) { $theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false); - if ($theme) { - echo stylesheet_tag("themes/$theme"); + if ($theme && file_exists("themes/$theme")) { + stylesheet_tag("themes/$theme"); + } else { + stylesheet_tag("themes/default.css"); } } ?> @@ -87,15 +88,15 @@ 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) { - echo javascript_tag($jsfile); + javascript_tag($jsfile); } ?> <script type="text/javascript"> + require({cache:{}}); <?php require 'lib/jshrink/Minifier.php'; |