From 0bd7a87110248a4efbc8cdb612e3c42ce9475942 Mon Sep 17 00:00:00 2001 From: Timon de Groot Date: Wed, 26 Feb 2020 15:36:12 +0100 Subject: [PATCH] Fix deprecated method usage --- .../view/frontend/templates/product/image.phtml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/app/code/Magento/Catalog/view/frontend/templates/product/image.phtml b/app/code/Magento/Catalog/view/frontend/templates/product/image.phtml index 5a31f3d125c81..83e69b658be4e 100644 --- a/app/code/Magento/Catalog/view/frontend/templates/product/image.phtml +++ b/app/code/Magento/Catalog/view/frontend/templates/product/image.phtml @@ -4,11 +4,14 @@ * See COPYING.txt for license details. */ ?> - + -escapeHtml($block->getCustomAttributes()) ?> - src="escapeUrl($block->getImageUrl()) ?>" - width="escapeHtmlAttr($block->getWidth()) ?>" - height="escapeHtmlAttr($block->getHeight()) ?>" - alt="stripTags($block->getLabel(), null, true) ?>" /> +escapeHtml($block->getCustomAttributes()) ?> + src="escapeUrl($block->getImageUrl()) ?>" + width="escapeHtmlAttr($block->getWidth()) ?>" + height="escapeHtmlAttr($block->getHeight()) ?>" + alt="stripTags($block->getLabel(), null, true) ?>" />