[BUGFIX] Linkvalidator: Add h1 headline with page title 91/34791/2
authorBenjamin Mack <benni@typo3.org>
Sat, 29 Nov 2014 23:57:28 +0000 (00:57 +0100)
committerFrank Nägler <typo3@naegler.net>
Sun, 30 Nov 2014 00:20:41 +0000 (01:20 +0100)
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 <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php

index 7545fd5..acb55b6 100644 (file)
@@ -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 '<div id="linkvalidator-modfuncreport"></div>';
+
+               $content = '';
+               if ($this->pObj->id) {
+                       $pageRecord = BackendUtility::getRecord('pages', $this->pObj->id);
+                       $content = '<h1>' . htmlspecialchars(BackendUtility::getRecordTitle('pages', $pageRecord)) . '</h1>';
+               }
+
+               $content .= '<div id="linkvalidator-modfuncreport"></div>';
+               return $content;
        }
 
        /**