]> git.wh0rd.org - tt-rss.git/blobdiff - index.php
disable version checking for night.css
[tt-rss.git] / index.php
index 132fd115447ad43db4104c01b4556fb751893856..4f2a9a860dd9292e97a77efd0813c71b20c6614c 100644 (file)
--- a/index.php
+++ b/index.php
 <head>
        <title>Tiny Tiny RSS</title>
 
+       <script type="text/javascript">
+               var __ttrss_version = "<?php echo VERSION ?>"
+       </script>
+
        <?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
        <?php echo stylesheet_tag("css/layout.css"); ?>
 
        <?php if ($_SESSION["uid"]) {
                $theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
-               if ($theme && file_exists("themes/$theme")) {
+               if ($theme && theme_valid("$theme")) {
                        echo stylesheet_tag("themes/$theme");
                } else {
                        echo stylesheet_tag("themes/default.css");
@@ -86,7 +90,7 @@
 
        <?php
        foreach (array("lib/prototype.js",
-                               "lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls",
+                               "lib/scriptaculous/scriptaculous.js?load=effects,controls",
                                "lib/dojo/dojo.js",
                                "lib/dojo/tt-rss-layer.js",
                                "errors.php?mode=js") as $jsfile) {
        </div>
 </div>
 
-<div id="notify" class="notify" style="display : none"></div>
+<div id="notify" class="notify"></div>
 <div id="cmdline" style="display : none"></div>
 <div id="headlines-tmp" style="display : none"></div>