mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-26 00:21:28 +01:00
Fixed media delete for streams
This commit is contained in:
@@ -1768,7 +1768,13 @@ class AdminController extends AdminBaseController
|
||||
return false;
|
||||
}
|
||||
|
||||
/** @var UniformResourceLocator $locator */
|
||||
$locator = $this->grav['locator'];
|
||||
|
||||
$targetPath = $media->path() . '/' . $filename;
|
||||
if ($locator->isStream($targetPath)) {
|
||||
$targetPath = $locator->findResource($targetPath, true, true);
|
||||
}
|
||||
$fileParts = pathinfo($filename);
|
||||
|
||||
$found = false;
|
||||
|
||||
Reference in New Issue
Block a user