aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-11-19 16:46:48 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-11-19 16:46:48 +0000
commit4bdd926a1c6238fe49cc3a8b26e7ce1539ebb764 (patch)
tree19deb331e4204003b11b88cc2f1e98cc2440b402 /index.php
parent394d606fe977a331f733c62e5509469c2eb3ef31 (diff)
parent154abc61a0f81bee7757fc57e594f3f4bccc0fdf (diff)
Merge branch 'feature/replace-get_pref-and-set_pref' into 'master'
Eliminate use of deprecated 'get_pref()' and 'set_pref()'. See merge request tt-rss/tt-rss!75
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index ac37043cd..7c58e4b7e 100644
--- a/index.php
+++ b/index.php
@@ -19,7 +19,7 @@
<meta name="viewport" content="initial-scale=1,width=device-width" />
<?php if ($_SESSION["uid"] && empty($_SESSION["safe_mode"])) {
- $theme = get_pref(Prefs::USER_CSS_THEME);
+ $theme = Prefs::get(Prefs::USER_CSS_THEME, $_SESSION['uid'], $_SESSION['profile'] ?? null);
if ($theme && theme_exists("$theme")) {
echo stylesheet_tag(get_theme_path($theme), ['id' => 'theme_css']);
}