[BUGFIX] Call to undefined method setTemplateFile 34/23734/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 10 Sep 2013 17:13:11 +0000 (19:13 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Sep 2013 16:21:23 +0000 (18:21 +0200)
Call to undefined method when setting
'pageHeaderFooterTemplateFile' in TypoScriptFrontendController.
This needs to be called on the page renderer object.

Change-Id: Ic4407addb5d22f09fc4cd6482cc79ad5af724582
Resolves: #51891
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/23734
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

index 62ec02d..030f271 100644 (file)
@@ -2402,7 +2402,7 @@ class TypoScriptFrontendController {
                                        if ($this->pSetup['pageHeaderFooterTemplateFile']) {
                                                $file = $this->tmpl->getFileName($this->pSetup['pageHeaderFooterTemplateFile']);
                                                if ($file) {
-                                                       $this->setTemplateFile($file);
+                                                       $this->getPageRenderer()->setTemplateFile($file);
                                                }
                                        }
                                }