summaryrefslogtreecommitdiff
path: root/index.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 /index.php
parent74986d1ac6e5d0433bff460aa2b0d1757c75f4b4 (diff)
disable themes in safe mode; rework safe mode warning/login prompt
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 ead02f2c4..93b3da71e 100644
--- a/index.php
+++ b/index.php
@@ -39,7 +39,7 @@
<title>Tiny Tiny RSS</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');