Fixed bug #17158: Pagetree: now uses [No title] from language file if no title is...
authorSusanne Moog <typo3@susannemoog.de>
Sat, 22 Jan 2011 12:38:34 +0000 (12:38 +0000)
committerSusanne Moog <typo3@susannemoog.de>
Sat, 22 Jan 2011 12:38:34 +0000 (12:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10246 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/tree/pagetree/class.t3lib_tree_pagetree_commands.php

index 424792e..8ea024a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Fixed bug #17091: Pagetree: undelete recursive deleted pages only undeletes the top node, not the other child nodes of the deleted page (Thanks to Stefan Galinski)
        * Fixed bug #17204: Pagetree: Only call the singleClick method if the navigation component is visible (Thanks to Stefan Galinski)
+       * Fixed bug #17158: Pagetree: now uses [No title] from language file if no title is there (Thanks to Stefan Galinski)
 
 2011-01-22  Steffen Gebert  <steffen@steffen-gebert.de>
 
index 4e9b12d..c06ee74 100644 (file)
@@ -303,7 +303,13 @@ final class t3lib_tree_pagetree_Commands {
                        $field = 'nav_title';
                        $text = $record['nav_title'];
                }
-               $visibleText = t3lib_div::fixed_lgd_cs($text, $titleLength);
+
+               if (trim($text) === '') {
+                       $visibleText = '[' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.no_title', TRUE) . ']';
+               } else {
+                       $visibleText = $text;
+               }
+               $visibleText = t3lib_div::fixed_lgd_cs($visibleText, $titleLength);
 
                $suffix = '';
                if ($addDomainName) {
@@ -339,4 +345,4 @@ final class t3lib_tree_pagetree_Commands {
        }
 }
 
-?>
+?>
\ No newline at end of file