Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Apr 4, 2024
1 parent cba5cd1 commit ee359e9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plib/library/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ public static function getSupportedTemplates()
if ($sfm->fileExists($templatesPath)) {
$listDir = $sfm->scandir($templatesPath, true);
foreach ($listDir as $file) {
$upperText = $file;
$upperText = ucfirst($upperText);
$templates[trim($file)] = $upperText;
if($file) {
$upperText = $file;
$upperText = ucfirst($upperText);
$templates[trim($file)] = $upperText;
}

}
} else {
$templates['Default'] = 'Default';
Expand Down

0 comments on commit ee359e9

Please sign in to comment.