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:
Sean Harvey 2013-05-23 15:10:00 -07:00
commit 916de30204

View File

@ -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;
}
}