summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index c43d2db4a..c3fe770f5 100644
--- a/index.php
+++ b/index.php
@@ -57,13 +57,13 @@
<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");
}
}
?>