Project

General

Profile

Bug #84488 ยป diff.patch

Sascha Maier, 2018-03-19 21:39

View differences:

typo3/sysext/linkvalidator/Classes/Linktype/FileLinktype.php
*/
use TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException;
use TYPO3\CMS\Core\Resource\Exception\FolderDoesNotExistException;
use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
......
$file = $resourceFactory->retrieveFileOrFolderObject($url);
} catch (FileDoesNotExistException $e) {
return false;
} catch (FolderDoesNotExistException $e) {
return false;
}
return !$file->isMissing();
}
/**
* Generate the localized error message from the error params saved from the parsing
*
    (1-1/1)