File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Customer/view/frontend/templates/js Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
/** @var \Magento\Customer\Block\CustomerData $block */
8
+
9
+ // phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
8
10
?>
9
11
<script type="text/x-magento-init">
10
12
{
11
13
"*": {
12
14
"Magento_Customer/js/customer-data": {
13
- "sectionLoadUrl": "<?= $ block ->escapeJs ($ block ->escapeUrl ( $ block -> getCustomerDataUrl ('customer/section/load ' ) )) ?> ",
15
+ "sectionLoadUrl": "<?= $ block ->escapeJs ($ block ->getCustomerDataUrl ('customer/section/load ' )) ?> ",
14
16
"expirableSectionLifetime": <?= (int )$ block ->getExpirableSectionLifetime () ?> ,
15
17
"expirableSectionNames": <?= /* @noEscape */ $ this ->helper (\Magento \Framework \Json \Helper \Data::class)->jsonEncode ($ block ->getExpirableSectionNames ()) ?> ,
16
18
"cookieLifeTime": "<?= $ block ->escapeJs ($ block ->getCookieLifeTime ()) ?> ",
17
- "updateSessionUrl": "<?= $ block ->escapeJs ($ block ->escapeUrl ( $ block -> getCustomerDataUrl ('customer/account/updateSession ' ) )) ?> "
19
+ "updateSessionUrl": "<?= $ block ->escapeJs ($ block ->getCustomerDataUrl ('customer/account/updateSession ' )) ?> "
18
20
}
19
21
}
20
22
}
You can’t perform that action at this time.
0 commit comments