Browse Source

add URL parameter to ignore user theme on startup

Andrew Dolgov 5 months ago
parent
commit
19e1d13460
2 changed files with 2 additions and 2 deletions
  1. 1 1
      index.php
  2. 1 1
      prefs.php

+ 1 - 1
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"]) {
+	<?php if ($_SESSION["uid"] && !isset($_REQUEST["ignore-theme"])) {
 		$theme = get_pref("USER_CSS_THEME", false, false);
 		if ($theme && theme_exists("$theme")) {
 			echo stylesheet_tag(get_theme_path($theme), 'theme_css');

+ 1 - 1
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"]) {
+	<?php if ($_SESSION["uid"] && !isset($_REQUEST["ignore-theme"])) {
 		$theme = get_pref("USER_CSS_THEME", false, false);
 		if ($theme && theme_exists("$theme")) {
 			echo stylesheet_tag(get_theme_path($theme), 'theme_css');