]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions2.php
add compact theme with smaller font
[tt-rss.git] / include / functions2.php
index d06a7a71003db30a945380519373c60d3b5bf285..b8eff56d2cf6e47e138236c7d18aeb4904ec173d 100644 (file)
        }
 
        function theme_valid($theme) {
-               if ($theme == "default.php" || $theme == "night.css") return true; // needed for array_filter
+               $bundled_themes = [ "default.php", "night.css", "compact.css" ];
+               
+               if (in_array($theme, $bundled_themes)) return true;
+
                $file = "themes/" . basename($theme);
 
                if (!file_exists($file)) $file = "themes.local/" . basename($theme);