Skip to content

Commit

Permalink
Fixed #113 bug with label prefix for template folders
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Sep 9, 2019
1 parent 5cf2b66 commit 2072a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CustomElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ function ($count) {
'path' => substr(dirname($configPath), strlen(TL_ROOT . '/')),
);

if ($element['path'] && substr($element['path'], 10)) {
if ($element['path'] && substr($element['path'], 0, 10) === 'templates/') {
if (isset($themeNamesByTemplateDir[$element['path']])) {
$element['labelPrefix'] = $themeNamesByTemplateDir[$element['path']] . ': ';
}
Expand Down

2 comments on commit 2072a90

@Defcon0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm. Could you please release a tag for that? Thanks!

@ausi
Copy link
Member Author

@ausi ausi commented on 2072a90 Sep 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: 2.2.12

Please sign in to comment.