Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit c42c3eb

Browse files
committed
Merge remote-tracking branch 'tango/MC-29519' into DEC-PR-01
2 parents c6cd40e + e72325b commit c42c3eb

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Catalog/Model/Category/Attribute/Backend

1 file changed

+2
-1
lines changed

app/code/Magento/Catalog/Model/Category/Attribute/Backend/Image.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ private function checkUniqueImageName(string $imageName): string
117117
$this->imageUploader->getBasePath() . DIRECTORY_SEPARATOR . $imageName
118118
);
119119

120-
$imageName = Uploader::getNewFilename($imageAbsolutePath);
120+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
121+
$imageName = call_user_func([Uploader::class, 'getNewFilename'], $imageAbsolutePath);
121122

122123
return $imageName;
123124
}

0 commit comments

Comments
 (0)