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'); }