]> git.mxchange.org Git - friendica.git/commitdiff
Unsupported themes aren't displayed anymore
authorMichael Vogel <icarus@dabo.de>
Sun, 7 Sep 2014 08:06:57 +0000 (10:06 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 7 Sep 2014 08:06:57 +0000 (10:06 +0200)
mod/admin.php

index 24069c5d9b5c046e758957673553990ac18b7853..e2b5b52a144c94bd1b940e310bdbe8ef1158c773 100644 (file)
@@ -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);
                }
        }