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 757a9a5 commit 4fe757dCopy full SHA for 4fe757d
app/code/Magento/CatalogGraphQl/Model/Resolver/Category/Image.php
@@ -81,11 +81,13 @@ public function resolve(
81
*/
82
private function formatFileNameWithMediaCategoryFolder(string $fileName): string
83
{
84
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
85
+ $baseFileName = basename($fileName);
86
return '/'
87
. $this->directoryList->getUrlPath('media')
88
. '/'
89
. ltrim(FileInfo::ENTITY_MEDIA_PATH, '/')
90
- . basename($fileName);
91
+ . $baseFileName;
92
}
93
0 commit comments