Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

[BUGFIX] getTemplatePath() returns now the first file/path #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/Utility/TemplateUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static function getTemplateFolders($part = 'template', $returnAllPaths =
public static function getTemplatePath($pathAndFilename, $part = 'template')
{
$matches = self::getTemplatePaths($pathAndFilename, $part);
return !empty($matches) ? end($matches) : '';
return !empty($matches) ? reset($matches) : '';
}

/**
Expand Down