Project

General

Profile

Actions

Bug #51891

closed

TypoScriptFrontendController 'Call to undefined method' when setting 'pageHeaderFooterTemplateFile'

Added by Stan Angeloff about 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2013-09-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When a page is configured:

page = PAGE
page {
  typeNum = 0
  pageHeaderFooterTemplateFile = fileadmin/templates/frontend.html
}

the TypoScriptFrontendController tries to call setTemplateFile on itself, but that method does not exist.

diff --git a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
index 20f7184..6d66720 100644
--- a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
+++ b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
@@ -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);
                         }
                     }
                 }
Actions

Also available in: Atom PDF