Created
January 24, 2020 13:09
-
-
Save DanielRiezebos/6be4de18aaf24a44533686fc29dc5347 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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