mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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) {
|
foreach (scandir($path) as $item) {
|
||||||
if ($item[0] != '.' && is_dir("$path/$item")) {
|
if ($item[0] != '.' && is_dir("$path/$item")) {
|
||||||
if ($subthemes || !strpos($item, '_')) {
|
if ($subthemes || strpos($item, '_') === false) {
|
||||||
$themes[$item] = $item;
|
$themes[$item] = $item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user