Project

General

Profile

Bug #44440 ยป 44440.patch

Marc Bastian Heinrichs, 2013-02-19 19:50

View differences:

typo3/sysext/core/Classes/Html/RteHtmlParser.php
} elseif ($fileChar) {
// It is an internal file or folder
// Try to transform the href into a FAL reference
$fileOrFolderObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($link_param);
try {
$fileOrFolderObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($link_param);
} catch(\TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException $e) {
// no file - nothing to do
}
if ($fileOrFolderObject instanceof \TYPO3\CMS\Core\Resource\Folder) {
// It's a folder
$folderIdentifier = $fileOrFolderObject->getIdentifier();
    (1-1/1)