[BUGFIX] Make TemplatePaths->fillDefaultsByPackageName sort paths 12/53112/2
authorClaus Due <claus@namelesscoder.net>
Wed, 24 May 2017 15:41:14 +0000 (17:41 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 4 Jun 2017 09:52:06 +0000 (11:52 +0200)
commit87e688ad6e58ee5768ee0c42aef4a16f113f1f92
tree4922bd36c37f93fbd5faac6202159fa56c4f87f9
parentbf07032d60dc7dfe5c470fd55af90c9f49fd8dae
[BUGFIX] Make TemplatePaths->fillDefaultsByPackageName sort paths

Due to the sequence of methods being called from this method,
it is necessary to sort TS-configured paths right when they are
resolved instead of passing the unsorted array further down.

Patch also sorts methods protected below public; true diff is
one line. Toggle this line between before/after and run the test
to see the problem demonstrated.

See issue description for a more detailed reasoning.

Change-Id: I0317c4ee683c2fac2c7def7c6d79f947afc4b078
Resolves: #81340
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/53112
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/fluid/Classes/View/TemplatePaths.php
typo3/sysext/fluid/Tests/Unit/View/TemplatePathsTest.php