mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1980 from feejin/bugfix-ignore-underscored-themes
FIX: exclude directory from available themes when underscore is first character
This commit is contained in:
commit
916de30204
@ -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…
Reference in New Issue
Block a user