Skip to content

Commit

Permalink
ENGCOM-2404: Microrefactoring in product gallery block helper #16889
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov authored Jul 23, 2018
2 parents 90e51c1 + 909b7d4 commit e4d7f60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getElementHtml()
*/
public function getImages()
{
$images = $this->registry->registry('current_product')->getData('media_gallery') ?: null;
$images = $this->getDataObject()->getData('media_gallery') ?: null;
if ($images === null) {
$images = ((array)$this->dataPersistor->get('catalog_product'))['product']['media_gallery'] ?? null;
}
Expand Down

0 comments on commit e4d7f60

Please sign in to comment.