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.
2 parents c6cd40e + e72325b commit c42c3ebCopy full SHA for c42c3eb
app/code/Magento/Catalog/Model/Category/Attribute/Backend/Image.php
@@ -117,7 +117,8 @@ private function checkUniqueImageName(string $imageName): string
117
$this->imageUploader->getBasePath() . DIRECTORY_SEPARATOR . $imageName
118
);
119
120
- $imageName = Uploader::getNewFilename($imageAbsolutePath);
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
121
+ $imageName = call_user_func([Uploader::class, 'getNewFilename'], $imageAbsolutePath);
122
123
return $imageName;
124
}
0 commit comments