[BUGFIX] Set page title for record list 11/47311/2
authorChristian Weiske <weiske@mogic.com>
Thu, 28 Jan 2016 10:39:13 +0000 (11:39 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 18 Mar 2016 08:09:13 +0000 (09:09 +0100)
Resolves: #72981
Releases: master, 7.6

Change-Id: I75deb2dd8808c0dccfe30b90b2459937b40dbd7c
Reviewed-on: https://review.typo3.org/47311
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/recordlist/Classes/RecordList.php

index 26a26d5..fb33313 100644 (file)
@@ -475,10 +475,12 @@ class RecordList extends AbstractModule
         // access
         // Begin to compile the whole page, starting out with page header:
         if (!$this->id) {
-            $this->body = $this->moduleTemplate->header($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']);
+            $title = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'];
         } else {
-            $this->body = $this->moduleTemplate->header($this->pageinfo['title']);
+            $title = $this->pageinfo['title'];
         }
+        $this->body = $this->moduleTemplate->header($title);
+        $this->moduleTemplate->setTitle($title);
 
         if (!empty($dblist->HTMLcode)) {
             $output = $dblist->HTMLcode;