[BUGFIX] Use FAL object name directly in Filelist clipboard message
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / ClickMenu / ClickMenu.php
index ab7c4fd..f896b67 100644 (file)
@@ -942,9 +942,8 @@ class ClickMenu {
                                $selItem = reset($elArr);
                                $clickedFileOrFolder = ResourceFactory::getInstance()->retrieveFileOrFolderObject($combinedIdentifier);
                                $fileOrFolderInClipBoard = ResourceFactory::getInstance()->retrieveFileOrFolderObject($selItem);
-                               $fileInfo = $fileOrFolderInClipBoard->getStorage()->getFileInfoByIdentifier(substr(strstr($selItem, ':'), 1));
                                $elInfo = array(
-                                       $fileInfo['name'],
+                                       $fileOrFolderInClipBoard->getName(),
                                        $clickedFileOrFolder->getName(),
                                        $this->clipObj->currentMode()
                                );