Skip to content

Commit 916de30

Browse files
committed
Merge pull request silverstripe#1980 from feejin/bugfix-ignore-underscored-themes
FIX: exclude directory from available themes when underscore is first character
2 parents 6394eaf + b2934d7 commit 916de30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/SSViewer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ public static function get_themes($path = null, $subthemes = false) {
644644

645645
foreach (scandir($path) as $item) {
646646
if ($item[0] != '.' && is_dir("$path/$item")) {
647-
if ($subthemes || !strpos($item, '_')) {
647+
if ($subthemes || strpos($item, '_') === false) {
648648
$themes[$item] = $item;
649649
}
650650
}

0 commit comments

Comments
 (0)