From: Andrew Dolgov Date: Thu, 28 Jan 2010 15:54:45 +0000 (+0300) Subject: only check for themes when there is a logged-in user X-Git-Tag: 1.4.1~26 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b92fbcd8a52ef26a1700e0194e6a7a2ccb733b7d;p=tt-rss.git only check for themes when there is a logged-in user --- diff --git a/functions.php b/functions.php index ec0f484a..86712f01 100644 --- a/functions.php +++ b/functions.php @@ -2047,7 +2047,7 @@ 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; @@ -2062,7 +2062,7 @@ 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")) {