Index: typo3/classes/class.shortcutmenu.php
===================================================================
--- typo3/classes/class.shortcutmenu.php (revision 5342)
+++ typo3/classes/class.shortcutmenu.php (working copy)
@@ -148,7 +148,7 @@
'.$shortcut['icon'].' |
- '.$shortcut['label'].'
+ '.$shortcut['label'].'
|
'.$editIcon.' id="shortcut-edit-'.$shortcut['raw']['uid'].'" /> |
'.$deleteIcon.' |
@@ -181,7 +181,7 @@
'.$shortcut['icon'].' |
- '.$shortcut['label'].'
+ '.$shortcut['label'].'
|
'.$editIcon.' id="shortcut-edit-'.$shortcut['raw']['uid'].'" /> |
'.$deleteIcon.' |
@@ -518,10 +518,10 @@
} else {
$shortcut['type'] = 'other';
}
-
+
// Lookup the title of this page and use it as default description
$pageId = $shortcut['recordid'] ? $shortcut['recordid'] : $this->getLinkedPageId($url);
-
+
if(t3lib_div::testInt($pageId)) {
$page = t3lib_BEfunc::getRecord('pages', $pageId);
if(count($page)) {
@@ -532,16 +532,16 @@
$shortcutName = $shortcutNamePrepend.' '.$LANG->sL($TCA[$shortcut['table']]['ctrl']['title']).' ('.$page['title'].')';
}
}
- } else {
- $dirName = urldecode($pageId);
+ } else {
+ $dirName = urldecode($pageId);
if (preg_match('/\/$/', $dirName)) {
// if $pageId is a string and ends with a slash,
// assume it is a fileadmin reference and set
// the description to the basename of that path
- $shortcutName .= ' ' . basename($dirName);
+ $shortcutName .= ' ' . basename($dirName);
}
}
-
+
// adding the shortcut
if($module && $url) {
$fieldValues = array(