diff options
| author | wn_ <invalid@email.com> | 2024-11-17 22:14:08 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-11-18 21:59:45 +0000 |
| commit | 154abc61a0f81bee7757fc57e594f3f4bccc0fdf (patch) | |
| tree | 19deb331e4204003b11b88cc2f1e98cc2440b402 /prefs.php | |
| parent | 394d606fe977a331f733c62e5509469c2eb3ef31 (diff) | |
Eliminate use of deprecated 'get_pref()' and 'set_pref()'.
Diffstat (limited to 'prefs.php')
| -rw-r--r-- | prefs.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']); } |