Bug #84488 ยป diff.patch
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
|
||
*
|