[BUGFIX] Make TemplatePaths->fillDefaultsByPackageName sort paths 38/52938/3
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:38:02 +0000 (11:38 +0200)
commit4508c537ad8a892f5a12c08f1a6ab5926015d8c6
tree88cd56d2ed9cf9cb02c20cdae711aaebcc2ba939
parent675852a229956a5c5523479df4812ab385e7f884
[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/52938
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
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