summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/index.php b/index.php
index 6a34be5e8..8dae2831f 100644
--- a/index.php
+++ b/index.php
@@ -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';