[BUGFIX] Prepend, don't append, configured View paths 83/51283/2
authorClaus Due <claus@namelesscoder.net>
Thu, 12 Jan 2017 12:02:20 +0000 (13:02 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 13 Jan 2017 19:32:18 +0000 (20:32 +0100)
Avoids an issue where default View paths would
be added LAST instead of FIRST as is intended.

Change-Id: I00413b40e2df529b0c6673226b65924b034c2432
Resolves: #79290
Releases: master
Reviewed-on: https://review.typo3.org/51283
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/fluid/Classes/View/TemplatePaths.php

index b73389e..5c4b665 100644 (file)
@@ -117,7 +117,7 @@ class TemplatePaths extends \TYPO3Fluid\Fluid\View\TemplatePaths
 
         foreach ($paths as $name => $defaultPaths) {
             if (!empty($configuredPaths[$name])) {
-                $paths[$name] = (array)$configuredPaths[$name] + $defaultPaths;
+                $paths[$name] = $defaultPaths + (array)$configuredPaths[$name];
             }
         }