Skip to content

Commit 292623b

Browse files
authored
Merge pull request #531 from chriwo/bugfix/459-wrong-template-order
[BUGFIX] Fix template ordering by respect the numeric template index
2 parents 1da270d + d9800e0 commit 292623b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Classes/Utility/TemplateUtility.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public static function getTemplateFolders(string $part = 'template'): array
3636
);
3737
if (!empty($extbaseConfig['view'][$part . 'RootPaths'])) {
3838
$templatePaths = $extbaseConfig['view'][$part . 'RootPaths'];
39+
ksort($templatePaths, SORT_NUMERIC);
3940
$templatePaths = array_values($templatePaths);
4041
}
4142
if (empty($templatePaths)) {

0 commit comments

Comments
 (0)