Skip to content

Commit d3dc8c7

Browse files
AC-10705 fixed static test failures
1 parent 1701ff2 commit d3dc8c7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/code/Magento/Backend/view/adminhtml/templates/dashboard/totalbar/refreshstatistics.phtml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
/** @var \Magento\Backend\Block\Template $block */
8+
/** @var \Magento\Framework\Escaper $escaper */
89
?>
910
<div class="page-actions">
1011
<div class="page-actions-inner">
@@ -13,17 +14,17 @@
1314

1415
<?php if ($block->getAuthorization()->isAllowed('Magento_Reports::statistics')): ?>
1516
<form class="action-element"
16-
action="<?= $block->escapeUrl($block->getUrl('*/*/refreshStatistics')) ?>"
17+
action="<?= $escaper->escapeUrl($block->getUrl('*/*/refreshStatistics')) ?>"
1718
method="post">
1819
<input
1920
name="form_key"
2021
type="hidden"
21-
value="<?= $block->escapeHtmlAttr($block->getFormKey()) ?>"/>
22+
value="<?= $escaper->escapeHtmlAttr($block->getFormKey()) ?>"/>
2223
<button
2324
class="action-primary"
2425
type="submit"
25-
title="<?= $block->escapeHtmlAttr(__('Reload Data')) ?>">
26-
<?= $block->escapeHtml(__('Reload Data')) ?>
26+
title="<?= $escaper->escapeHtmlAttr(__('Reload Data')) ?>">
27+
<?= $escaper->escapeHtml(__('Reload Data')) ?>
2728
</button>
2829
</form>
2930
<?php endif; ?>

0 commit comments

Comments
 (0)