[BUGFIX] Call to undefined method setTemplateFile 92/23792/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:22:22 +0000 (18:22 +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
(cherry picked from commit eee040cc3ba06154638f94ed1b59c7e2a78e4064)
Reviewed-on: https://review.typo3.org/23792

typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

index f2a5a78..e7b73c0 100644 (file)
@@ -2393,7 +2393,7 @@ class TypoScriptFrontendController {
                                        if ($this->pSetup['pageHeaderFooterTemplateFile']) {
                                                $file = $this->tmpl->getFileName($this->pSetup['pageHeaderFooterTemplateFile']);
                                                if ($file) {
-                                                       $this->setTemplateFile($file);
+                                                       $this->getPageRenderer()->setTemplateFile($file);
                                                }
                                        }
                                }