From 871b425c6eedaad955ade2a4d669d2ee34af3c8b Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 7 Sep 2014 10:06:57 +0200 Subject: [PATCH] Unsupported themes aren't displayed anymore --- mod/admin.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index 24069c5d9b..e2b5b52a14 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -1179,9 +1179,11 @@ function admin_page_themes(&$a){ foreach($files as $file) { $f = basename($file); $is_experimental = intval(file_exists($file . '/experimental')); - $is_supported = 1-(intval(file_exists($file . '/unsupported'))); // Is not used yet + $is_supported = 1-(intval(file_exists($file . '/unsupported'))); $is_allowed = intval(in_array($f,$allowed_themes)); - $themes[] = array('name' => $f, 'experimental' => $is_experimental, 'supported' => $is_supported, 'allowed' => $is_allowed); + + if ($is_allowed OR $is_supported OR get_config("system", "show_unsupported_themes")) + $themes[] = array('name' => $f, 'experimental' => $is_experimental, 'supported' => $is_supported, 'allowed' => $is_allowed); } } -- 2.39.5