Skip to content

Commit cf30fd8

Browse files
committed
Apply suggestion changes realted to the directory delete action
1 parent 854bc2a commit cf30fd8

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/MediaGallery/Plugin/Wysiwyg/Images

1 file changed

+5
-1
lines changed

app/code/Magento/MediaGallery/Plugin/Wysiwyg/Images/Storage.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ public function afterDeleteDirectory(StorageSubject $subject, $result, $path)
100100
}
101101

102102
try {
103-
$this->deleteMediaAssetByPath->execute([$this->getMediaDirectoryRelativePath($path)]);
103+
$this->deleteMediaAssetByPath->execute(
104+
[
105+
$this->filesystem->getDirectoryRead(DirectoryList::MEDIA)->getRelativePath($path)
106+
]
107+
);
104108
} catch (\Exception $exception) {
105109
$this->logger->critical($exception);
106110
}

0 commit comments

Comments
 (0)