Skip to content

Commit

Permalink
Merge pull request #330 from SnowdogApps/feature/105672
Browse files Browse the repository at this point in the history
#321 - Fixed submenu template name issue
  • Loading branch information
maartynaa authored Jun 21, 2024
2 parents 3163d90 + f1e6886 commit 511e87f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Model/TemplateResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ class TemplateResolver
* @var Registry
*/
private $registry;

/**
* @var Validator
*/
private $validator;

/**
* @var AssetRepository
*/
Expand Down Expand Up @@ -164,7 +164,7 @@ private function getTemplateList($nodeType = '', $defaultTemplateLabel = '')
continue;
}

$fileName = str_replace([$themeDir, '.' . $extension], '', $file);
$fileName = $this->ioFile->getPathInfo($file)['filename'];
if (!in_array($fileName, array_column($result, 'id'))) {
$result[] = ['id' => $fileName];
}
Expand Down

0 comments on commit 511e87f

Please sign in to comment.