]> git.wh0rd.org Git - tt-rss.git/commitdiff
only check for themes when there is a logged-in user
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 28 Jan 2010 15:54:45 +0000 (18:54 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 28 Jan 2010 15:54:45 +0000 (18:54 +0300)
functions.php

index ec0f484ad4c8b5e6d644e01e8c80793d00776f8e..86712f01bf99b2a4b1f5463b74d1ef1f53a4d133 100644 (file)
 
        function get_user_theme($link) {
 
-               if (get_schema_version($link) >= 63) {
+               if (get_schema_version($link) >= 63 && $_SESSION["uid"]) {
                        $theme_name = get_pref($link, "_THEME_ID");
                        if (is_dir("themes/$theme_name")) {
                                return $theme_name;
 
        function get_user_theme_path($link) {
 
-               if (get_schema_version($link) >= 63) {
+               if (get_schema_version($link) >= 63 && $_SESSION["uid"]) {
                        $theme_name = get_pref($link, "_THEME_ID");
 
                        if ($theme_name && is_dir("themes/$theme_name")) {