mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
only check for themes when there is a logged-in user
This commit is contained in:
+2
-2
@@ -2047,7 +2047,7 @@
|
|||||||
|
|
||||||
function get_user_theme($link) {
|
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");
|
$theme_name = get_pref($link, "_THEME_ID");
|
||||||
if (is_dir("themes/$theme_name")) {
|
if (is_dir("themes/$theme_name")) {
|
||||||
return $theme_name;
|
return $theme_name;
|
||||||
@@ -2062,7 +2062,7 @@
|
|||||||
|
|
||||||
function get_user_theme_path($link) {
|
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");
|
$theme_name = get_pref($link, "_THEME_ID");
|
||||||
|
|
||||||
if ($theme_name && is_dir("themes/$theme_name")) {
|
if ($theme_name && is_dir("themes/$theme_name")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user