Skip to content

Commit 410e53c

Browse files
committed
AC-1989: Fix subset of deprecated php usages
- Fix static tests
1 parent c6ef15e commit 410e53c

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Newsletter/Block/Adminhtml/Template

1 file changed

+2
-1
lines changed

app/code/Magento/Newsletter/Block/Adminhtml/Template/Edit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ public function getForm()
215215
public function getJsTemplateName()
216216
{
217217
$templateCode = $this->getModel()->getTemplateCode();
218-
return $templateCode ? addslashes($templateCode) : '';
218+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
219+
return $templateCode ? addcslashes($templateCode, "\"\r\n\\") : '';
219220
}
220221

221222
/**

0 commit comments

Comments
 (0)