Skip to content

Commit a567d99

Browse files
author
cspruiell
committed
MAGETWO-69397: Hidden product images are not hidden from category listing or product view
- support custom placeholder images
1 parent 3380da8 commit a567d99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/Helper/Image.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace Magento\Catalog\Helper;
77

88
use Magento\Framework\App\Helper\AbstractHelper;
9-
use Magento\Framework\App\ObjectManager;
109

1110
/**
1211
* Catalog image helper
@@ -150,8 +149,9 @@ public function __construct(
150149
parent::__construct($context);
151150
$this->_assetRepo = $assetRepo;
152151
$this->viewConfig = $viewConfig;
153-
$this->viewAssetPlaceholderFactory = $placeholderFactory ?:
154-
ObjectManager::getInstance()->get(\Magento\Catalog\Model\View\Asset\PlaceholderFactory::class);
152+
$this->viewAssetPlaceholderFactory = $placeholderFactory
153+
?: \Magento\Framework\App\ObjectManager::getInstance()
154+
->get(\Magento\Catalog\Model\View\Asset\PlaceholderFactory::class);
155155
}
156156

157157
/**

0 commit comments

Comments
 (0)