File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
app/code/Magento/Backend/view/adminhtml/templates/dashboard/totalbar Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
6+
7+ /** @var \Magento\Backend\Block\Template $block */
8+ /** @var \Magento\Framework\Escaper $escaper */
69?>
710<div class="page-actions">
811 <div class="page-actions-inner">
912 <div class="page-actions-buttons">
1013 <?= $ block ->getChildHtml () ?>
1114
15+ <?php if ($ block ->getAuthorization ()->isAllowed ('Magento_Reports::statistics ' )): ?>
1216 <form class="action-element"
13- action="<?= $ block ->escapeUrl ($ block ->getUrl ('*/*/refreshStatistics ' )) ?> "
17+ action="<?= $ escaper ->escapeUrl ($ block ->getUrl ('*/*/refreshStatistics ' )) ?> "
1418 method="post">
1519 <input
1620 name="form_key"
1721 type="hidden"
18- value="<?= $ block ->escapeHtmlAttr ($ block ->getFormKey ()) ?> "/>
22+ value="<?= $ escaper ->escapeHtmlAttr ($ block ->getFormKey ()) ?> "/>
1923 <button
2024 class="action-primary"
2125 type="submit"
22- title="<?= $ block ->escapeHtmlAttr (__ ('Reload Data ' )) ?> ">
23- <?= $ block ->escapeHtml (__ ('Reload Data ' )) ?>
26+ title="<?= $ escaper ->escapeHtmlAttr (__ ('Reload Data ' )) ?> ">
27+ <?= $ escaper ->escapeHtml (__ ('Reload Data ' )) ?>
2428 </button>
2529 </form>
30+ <?php endif ; ?>
2631 </div>
2732 </div>
2833</div>
You can’t perform that action at this time.
0 commit comments