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 #1

Updated by Gerrit Code Review about 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23734

Actions #2

Updated by Gerrit Code Review about 11 years ago

Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/23792

Actions #3

Updated by Gerrit Code Review about 11 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/23793

Actions #4

Updated by Wouter Wolters about 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF