From 181c8285dddbcad937ff67c648478c0c13a85ad5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 26 Jan 2017 22:41:18 +0300 Subject: add compact theme with smaller font --- include/functions2.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/functions2.php b/include/functions2.php index d06a7a710..b8eff56d2 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -2428,7 +2428,10 @@ } 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); -- cgit v1.2.3-54-g00ecf