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

require version information in all additional themes

This commit is contained in:
Andrew Dolgov
2014-12-09 15:16:53 +03:00
parent 9b46c8e5e7
commit f6cbe9a5a0
5 changed files with 26 additions and 4 deletions

View File

@@ -65,7 +65,7 @@
<?php if ($_SESSION["uid"]) {
$theme = get_pref( "USER_CSS_THEME", $_SESSION["uid"], false);
if ($theme && file_exists("themes/$theme")) {
if ($theme && theme_valid("$theme")) {
echo stylesheet_tag("themes/$theme");
} else {
echo stylesheet_tag("themes/default.css");