[TASK] Replace last occurrence of DocumentTemplate::getHeader 20/46020/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sat, 16 Jan 2016 16:25:50 +0000 (17:25 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 18 Jan 2016 04:12:30 +0000 (05:12 +0100)
Replace the last occurrence with direct calls to the current API.

This place is well hidden in: Info module > Page TSConfig >
View TSConfig fields content.

Resolves: #72772
Releases: master
Change-Id: I0dee0099b5be50fe5182aa4852478854abd26afa
Reviewed-on: https://review.typo3.org/46020
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/info_pagetsconfig/Classes/Controller/InfoPageTyposcriptConfigController.php

index a73fe73..0df3183 100644 (file)
@@ -100,6 +100,7 @@ class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\Abstr
             $theOutput = '<h1>' . htmlspecialchars($this->getLanguageService()->getLL('tsconf_title')) . '</h1>';
 
             if ($this->pObj->MOD_SETTINGS['tsconf_parts'] == 99) {
+
                 $TSparts = BackendUtility::getPagesTSconfig($this->pObj->id, null, true);
                 $lines = array();
                 $pUids = array();
@@ -111,7 +112,9 @@ class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\Abstr
                         } else {
                             $pUids[] = substr($k, 4);
                             $row = BackendUtility::getRecordWSOL('pages', substr($k, 4));
-                            $pTitle = $this->pObj->doc->getHeader('pages', $row, '', false);
+
+                            $icon = $this->iconFactory->getIconForRecord('pages', $row, Icon::SIZE_SMALL);
+                            $pTitle = BackendUtility::wrapClickMenuOnIcon($icon, 'pages', $row['uid']) . ' ' . htmlspecialchars(BackendUtility::getRecordTitle('pages', $row));
                             $editIdList = substr($k, 4);
                             $urlParameters = [
                                 'edit' => [