added curly braces + removed more useless intval() calls on file_exists()
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
fef61a28cc
commit
aeb0ed32c8
|
@ -1707,9 +1707,9 @@ function admin_page_themes(App $a) {
|
|||
continue;
|
||||
}
|
||||
|
||||
$is_experimental = intval(file_exists($file.'/experimental'));
|
||||
$is_supported = 1-(intval(file_exists($file.'/unsupported')));
|
||||
$is_allowed = intval(in_array($f,$allowed_themes));
|
||||
$is_experimental = file_exists($file.'/experimental');
|
||||
$is_supported = (!file_exists($file.'/unsupported'));
|
||||
$is_allowed = in_array($f,$allowed_themes);
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue