mirror of
https://github.com/getgrav/grav.git
synced 2026-09-02 02:17:38 +02:00
Fixed removing file from local media
This commit is contained in:
@@ -307,7 +307,7 @@ abstract class LocalMedia extends AbstractMedia
|
||||
protected function doRemove(string $filename): void
|
||||
{
|
||||
$filepath = $this->getRealPath($filename);
|
||||
if ($this->fileExists($filepath)) {
|
||||
if (is_file($filepath)) {
|
||||
$result = unlink($filepath);
|
||||
if (!$result) {
|
||||
throw new RuntimeException($filename, 500);
|
||||
|
||||
Reference in New Issue
Block a user