From 21ba474406ee1d786148c2562c0ce8129c5062ae Mon Sep 17 00:00:00 2001 From: sergey Date: Sat, 16 Jan 2021 20:48:54 +0200 Subject: [PATCH] Magento_Variable: avoid using deprecated escape* methods from AbstractBlock --- app/code/Magento/Variable/Block/System/Variable/Edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Variable/Block/System/Variable/Edit.php b/app/code/Magento/Variable/Block/System/Variable/Edit.php index ea119b88fa795..181bffc8fd2eb 100644 --- a/app/code/Magento/Variable/Block/System/Variable/Edit.php +++ b/app/code/Magento/Variable/Block/System/Variable/Edit.php @@ -101,7 +101,7 @@ public function getFormHtml() public function getHeaderText() { if ($this->getVariable()->getId()) { - return __('Custom Variable "%1"', $this->escapeHtml($this->getVariable()->getName())); + return __('Custom Variable "%1"', $this->_escaper->escapeHtml($this->getVariable()->getName())); } else { return __('New Custom Variable'); }