1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 03:35:55 +00:00

disable themes in safe mode; rework safe mode warning/login prompt

This commit is contained in:
Andrew Dolgov
2021-02-11 21:19:57 +03:00
parent 74986d1ac6
commit 848bc57f29
6 changed files with 41 additions and 5 deletions

View File

@@ -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');