forked from FluidTYPO3/flux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Completely match core behavior when resolving templates
This change: * Cleans up TemplatePaths to move all legacy processing to the same method. * Sorts the incoming plural-name arrays in reverse before they are mixed in. * Removes the now redundant sorting done in the resolveTemplateFile... method. * Sets the priority when resolving: plurals -> "overlays." -> singular The change brings the TemplatePaths return value into sync with what is expected inside the TemplateView of Extbase. When creating TemplateView instances for controllers, Extbase will internally resolve these paths and in `TYPO3\CMS\Extbase\Mvc\Controller\ActionController::getViewProperty` will do the sorting, then `array_reverse`. In other words: it is *Extbase* that sorts these paths in default behavior. Flux will now mimic this exactly. Credit goes to @monosize and @outdoorsman for thorough investigations! Close: FluidTYPO3#779
- Loading branch information
1 parent
b4bfff3
commit 3bd5fab
Showing
1 changed file
with
37 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters