[+BUGFIX] Fluid (View): Improved error message in case no layout/partial was found...
authorSebastian Kurfürst <sebastian@typo3.org>
Mon, 10 Aug 2009 04:43:39 +0000 (04:43 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Mon, 10 Aug 2009 04:43:39 +0000 (04:43 +0000)
typo3/sysext/fluid/Classes/View/TemplateView.php

index 0b6a6ff..c815d6a 100644 (file)
@@ -258,7 +258,7 @@ class Tx_Fluid_View_TemplateView extends Tx_Extbase_MVC_View_AbstractView implem
                }
 
                $paths = $this->expandGenericPathPattern($this->layoutPathAndFilenamePattern, TRUE, TRUE);
-               foreach ($paths as $key => $path) {
+               foreach ($paths as $key => &$path) {
                        $path = str_replace('@layout', $layoutName, $path);
                        if (file_exists($path)) {
                                return $path;
@@ -291,7 +291,7 @@ class Tx_Fluid_View_TemplateView extends Tx_Extbase_MVC_View_AbstractView implem
         */
        protected function resolvePartialPathAndFilename($partialName) {
                $paths = $this->expandGenericPathPattern($this->partialPathAndFilenamePattern, TRUE, TRUE);
-               foreach ($paths as $key => $path) {
+               foreach ($paths as $key => &$path) {
                        $path = str_replace('@partial', $partialName, $path);
                        if (file_exists($path)) {
                                return $path;