Files should not appear as themes

This commit is contained in:
Sam Georges 2014-07-24 17:49:02 +10:00
parent f7dcf8ebb0
commit 0dabaf67c1
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class Theme
$result = [];
foreach ($it as $fileinfo) {
if ($fileinfo->isDot() || (substr($fileinfo->getFilename(), 0, 1) == '.'))
if (!$fileinfo->isDir() || $fileinfo->isDot())
continue;
$theme = new static;