FlexFolderStorage: fixed error on deleting file

This commit is contained in:
Matias Griese
2019-08-28 18:09:33 +03:00
parent 53b7c95b0d
commit e36a2ea1b0

View File

@@ -360,7 +360,9 @@ class FolderStorage extends AbstractFilesystemStorage
{
try {
$data = $file->content();
$file->delete();
if ($file->exists()) {
$file->delete();
}
/** @var UniformResourceLocator $locator */
$locator = Grav::instance()['locator'];