Fixed bug #16262: Link browser shows wrong title for pages and tt_content elements...
authorJeff Segars <jsegars@alumni.rice.edu>
Tue, 9 Nov 2010 17:13:30 +0000 (17:13 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Tue, 9 Nov 2010 17:13:30 +0000 (17:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9323 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.browse_links.php

index 934942f..12f6e30 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-09  Jeff Segars <jeff@webempoweredchurch.org>
+
+       * Fixed bug #16262: Link browser shows wrong title for pages and tt_content elements (Thanks to Reinhard F├╝hricht)
+
 2010-11-09  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #16280: Field size for "shortcut" is 3, although maxitems is 1
index fce0dec..d32d66d 100644 (file)
@@ -1853,7 +1853,7 @@ class browse_links {
                        $titleLen=intval($GLOBALS['BE_USER']->uc['titleLen']);
                        $mainPageRec = t3lib_BEfunc::getRecordWSOL('pages',$expPageId);
                        $picon = t3lib_iconWorks::getSpriteIconForRecord('pages', $mainPageRec);
-                       $picon.= htmlspecialchars(t3lib_div::fixed_lgd_cs($mainPageRec['title'],$titleLen));
+                       $picon .= t3lib_BEfunc::getRecordTitle('pages', $mainPageRec, TRUE);
                        $out.=$picon.'<br />';
 
                                // Look up tt_content elements from the expanded page:
@@ -1883,7 +1883,7 @@ class browse_links {
                                                $arrCol.
                                                '<a href="#" onclick="return link_typo3Page(\''.$expPageId.'\',\'#'.$row['uid'].'\');">'.
                                                $icon.
-                                               htmlspecialchars(t3lib_div::fixed_lgd_cs($row['header'],$titleLen)).
+                                               t3lib_BEfunc::getRecordTitle('tt_content', $row, TRUE) .
                                                '</a><br />';
 
                                        // Finding internal anchor points: