Skip to content

Instantly share code, notes, and snippets.

@DanielRiezebos
Created January 24, 2020 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielRiezebos/6be4de18aaf24a44533686fc29dc5347 to your computer and use it in GitHub Desktop.
Save DanielRiezebos/6be4de18aaf24a44533686fc29dc5347 to your computer and use it in GitHub Desktop.
--- Model/Wysiwyg/Images/Storage.php 2020-01-24 14:06:05.381980784 +0100
+++ Model/Wysiwyg/Images/Storage.php 2020-01-24 14:06:25.794948208 +0100
@@ -594,7 +594,7 @@
$mediaRootDir = $this->_cmsWysiwygImages->getStorageRoot();
if (strpos($filePath, (string) $mediaRootDir) === 0) {
- $thumbSuffix = self::THUMBS_DIRECTORY_NAME . substr($filePath, strlen($mediaRootDir));
+ $thumbSuffix = self::THUMBS_DIRECTORY_NAME . '/' . substr($filePath, strlen($mediaRootDir));
if (!$checkFile || $this->_directory->isExist(
$this->_directory->getRelativePath($mediaRootDir . '/' . $thumbSuffix)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment