summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-11 21:19:57 +0300
committerAndrew Dolgov <[email protected]>2021-02-11 21:19:57 +0300
commit848bc57f29ca4aa8357617a8470afb063748dd99 (patch)
tree0f4a99b0d82c30924f3e0df85834a30e885470f8 /prefs.php
parent74986d1ac6e5d0433bff460aa2b0d1757c75f4b4 (diff)
disable themes in safe mode; rework safe mode warning/login prompt
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/prefs.php b/prefs.php
index 07e636a0a..671a81473 100644
--- a/prefs.php
+++ b/prefs.php
@@ -31,7 +31,7 @@
<title>Tiny Tiny RSS : <?php echo __("Preferences") ?></title>
<meta name="viewport" content="initial-scale=1,width=device-width" />
- <?php if ($_SESSION["uid"] && !isset($_REQUEST["ignore-theme"])) {
+ <?php if ($_SESSION["uid"] && empty($_SESSION["safe_mode"])) {
$theme = get_pref("USER_CSS_THEME", false, false);
if ($theme && theme_exists("$theme")) {
echo stylesheet_tag(get_theme_path($theme), 'theme_css');