Skip to content

Commit cfd6389

Browse files
committed
B2B-2022:[AWS S3] [Integration Tests]: Investigate Test Failures in Catalog module
- Added fix for static tests failures for Gallery
1 parent dc2e070 commit cfd6389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Block/Product/Gallery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Magento\Catalog\Block\Product;
1313

1414
use Magento\Catalog\Model\Product;
15-
use Magento\Catalog\Model\Product\Image;
1615
use Magento\Framework\App\Filesystem\DirectoryList;
1716
use Magento\Framework\Data\Collection;
1817

@@ -123,6 +122,7 @@ public function getImageFile()
123122
public function getImageWidth()
124123
{
125124
$file = $this->getCurrentImage()->getPath();
125+
126126
if ($this->_filesystem->getDirectoryRead(DirectoryList::MEDIA)->isFile($file)) {
127127
$size = getimagesize($file);
128128
if (isset($size[0])) {

0 commit comments

Comments
 (0)