[BUGFIX] Page View Button misses tooltip in page language module 55/35755/2
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 3 Jan 2015 12:26:26 +0000 (13:26 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 3 Jan 2015 13:56:22 +0000 (14:56 +0100)
Add a title attribute to the view page button in page module,
when language mode is active.

Change-Id: I3c991173b2a46e33dcdff5ad6827b4ef6d4dc5fe
Resolves: #64095
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/35755
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index fd1fc58..547d276 100644 (file)
@@ -671,7 +671,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
 
                                        // "View page" icon is added:
                                        $onClick = BackendUtility::viewOnClick($this->id, $this->backPath, BackendUtility::BEgetRootLine($this->id), '', '', ('&L=' . $lP));
-                                       $viewLink = '<a href="#" onclick="' . htmlspecialchars($onClick) . '">' . IconUtility::getSpriteIcon('actions-document-view') . '</a>';
+                                       $viewLink = '<a href="#" onclick="' . htmlspecialchars($onClick) . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.showPage', TRUE) . '">' . IconUtility::getSpriteIcon('actions-document-view') . '</a>';
                                        // Language overlay page header:
                                        if ($lP) {
                                                list($lpRecord) = BackendUtility::getRecordsByField('pages_language_overlay', 'pid', $id, 'AND sys_language_uid=' . $lP);