mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX: exclude directory from available themes when underscore is first character
Change FALSE to lowercase
This commit is contained in:
parent
6394eaf6a3
commit
b2934d7ebf
@ -644,7 +644,7 @@ class SSViewer {
|
||||
|
||||
foreach (scandir($path) as $item) {
|
||||
if ($item[0] != '.' && is_dir("$path/$item")) {
|
||||
if ($subthemes || !strpos($item, '_')) {
|
||||
if ($subthemes || strpos($item, '_') === false) {
|
||||
$themes[$item] = $item;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user