Skip to content

Commit f1c17d8

Browse files
committed
Explace the direct usage of Zend_Json with a call to the Json Help class
1 parent 33261e7 commit f1c17d8

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Widget/view/adminhtml/templates/instance/edit

1 file changed

+1
-1
lines changed

app/code/Magento/Widget/view/adminhtml/templates/instance/edit/layout.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ window.WidgetInstance = WidgetInstance;
487487

488488
jQuery(function(){
489489
<?php foreach ($block->getPageGroups() as $pageGroup): ?>
490-
WidgetInstance.addPageGroup(<?php /* @noEscape */ echo Zend_Json::encode($pageGroup) ?>);
490+
WidgetInstance.addPageGroup(<?php /* @noEscape */ echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($pageGroup) ?>);
491491
<?php endforeach; ?>
492492
Event.observe(document, 'product:changed', function(event){
493493
WidgetInstance.checkProduct(event);

0 commit comments

Comments
 (0)