From 9a5097ab14d6ea09ddd732527df838bed74c6eb3 Mon Sep 17 00:00:00 2001 From: Benjamin Mack Date: Sun, 30 Nov 2014 00:57:28 +0100 Subject: [PATCH 1/1] [BUGFIX] Linkvalidator: Add h1 headline with page title MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In order to be consistent with the other Web modules, the linkvalidator module should output the page title as h1. Releases: master Resolves: #63224 Change-Id: I89dc6c2f1de6b04a9f2a28099ae0a38258095215 Reviewed-on: http://review.typo3.org/34791 Reviewed-by: Mathias Schreiber Tested-by: Mathias Schreiber Reviewed-by: Frank Nägler Tested-by: Frank Nägler --- .../Classes/Report/LinkValidatorReport.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php b/typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php index 7545fd5a25dd..acb55b6a3175 100644 --- a/typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php +++ b/typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php @@ -214,7 +214,15 @@ class LinkValidatorReport extends \TYPO3\CMS\Backend\Module\AbstractFunctionModu $this->checkOptHtml = $this->getCheckOptions($brokenLinkOverView); $this->checkOptHtmlCheck = $this->getCheckOptions($brokenLinkOverView, 'check'); $this->createTabs(); - return '
'; + + $content = ''; + if ($this->pObj->id) { + $pageRecord = BackendUtility::getRecord('pages', $this->pObj->id); + $content = '

' . htmlspecialchars(BackendUtility::getRecordTitle('pages', $pageRecord)) . '

'; + } + + $content .= '
'; + return $content; } /** -- 2.20.1