[TASK] Remove superfluous function calls in page module 99/60399/2
authorMarkus Klein <markus.klein@typo3.org>
Fri, 5 Apr 2019 14:23:30 +0000 (16:23 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 5 Apr 2019 15:54:23 +0000 (17:54 +0200)
Resolves: #88091
Releases: master, 9.5
Change-Id: I3261190c1214dece4dce5d208a54af2b14b3aa0e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60399
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 12f78f8..538ad39 100644 (file)
@@ -2131,8 +2131,6 @@ class PageLayoutView implements LoggerAwareInterface
         // Make header:
 
         if ($row['header']) {
-            $infoArr = [];
-            $this->getProcessedValue('tt_content', 'header_position,header_layout,header_link', $row, $infoArr);
             $hiddenHeaderNote = '';
             // If header layout is set to 'hidden', display an accordant note:
             if ($row['header_layout'] == 100) {
@@ -2145,7 +2143,6 @@ class PageLayoutView implements LoggerAwareInterface
                 . $hiddenHeaderNote . '</strong><br />';
         }
         // Make content:
-        $infoArr = [];
         $drawItem = true;
         // Hook: Render an own preview of a record
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'] ?? [] as $className) {
@@ -2254,7 +2251,7 @@ class PageLayoutView implements LoggerAwareInterface
                     break;
                 case 'list':
                     $hookOut = '';
-                    $_params = ['pObj' => &$this, 'row' => $row, 'infoArr' => $infoArr];
+                    $_params = ['pObj' => &$this, 'row' => $row, 'infoArr' => []];
                     foreach (
                         $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info'][$row['list_type']] ??
                         $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['_DEFAULT'] ??