We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 112476a commit 8522a14Copy full SHA for 8522a14
app/code/Magento/Catalog/Model/Category/FileInfo.php
@@ -178,7 +178,7 @@ private function getMediaDirectoryPathRelativeToBaseDirectoryPath(string $filePa
178
$mediaDirectoryPath = $this->getMediaDirectory()->getAbsolutePath();
179
180
$mediaDirectoryRelativeSubpath = substr($mediaDirectoryPath, strlen($baseDirectoryPath));
181
- $pubDirectory = DirectoryList::PUB . DIRECTORY_SEPARATOR;
+ $pubDirectory = 'pub' . DIRECTORY_SEPARATOR;
182
183
if (strpos($mediaDirectoryRelativeSubpath, $pubDirectory) === 0 && strpos($filePath, $pubDirectory) !== 0) {
184
$mediaDirectoryRelativeSubpath = substr($mediaDirectoryRelativeSubpath, strlen($pubDirectory));
0 commit comments