Skip to content
Snippets Groups Projects
Commit ad2bfdc6 authored by Georg Ringer's avatar Georg Ringer
Browse files

[TASK] Replace last occurrence of DocumentTemplate::getHeader

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: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarDaniel Goerz <ervaude@gmail.com>
Tested-by: default avatarDaniel Goerz <ervaude@gmail.com>
Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Tested-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent b67fe7cb
Branches
Tags
No related merge requests found
......@@ -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' => [
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment