diff --git a/typo3/sysext/backend/Classes/View/PageLayoutView.php b/typo3/sysext/backend/Classes/View/PageLayoutView.php index 80f446af9ab3b47749a64cb6d8215fb28bdce1c4..39d32eb80248c97cfd1222ca78fde8de3f1d2eda 100644 --- a/typo3/sysext/backend/Classes/View/PageLayoutView.php +++ b/typo3/sysext/backend/Classes/View/PageLayoutView.php @@ -1335,14 +1335,6 @@ class PageLayoutView implements LoggerAwareInterface : '' ); - $lPLabel = - '<p>' . $recordIcon . ' ' . htmlspecialchars(GeneralUtility::fixed_lgd_cs($pageLocalizationRecord['title'], 20)) . '</p>' - . '<div class="btn-group">' - . $viewLink - . $editLink - . '</div>' - ; - $defaultLanguageElements = []; array_walk($defaultLanguageElementsByColumn, function (array $columnContent) use (&$defaultLanguageElements) { $defaultLanguageElements = array_merge($defaultLanguageElements, $columnContent); @@ -1354,9 +1346,14 @@ class PageLayoutView implements LoggerAwareInterface $lP ); - if (!empty($localizationButtons)) { - $lPLabel .= LF . '<div class="btn-group">' . implode(LF, $localizationButtons) . '</div>'; - } + $lPLabel = + '<div class="btn-group">' + . $viewLink + . $editLink + . (!empty($localizationButtons) ? implode(LF, $localizationButtons) : '') + . '</div>' + . ' ' . $recordIcon . ' ' . htmlspecialchars(GeneralUtility::fixed_lgd_cs($pageLocalizationRecord['title'], 20)) + ; } else { $editLink = ''; $recordIcon = '';