Skip to content

Commit a4852f8

Browse files
author
Hayder Sharhan
committed
MAGETWO-54051: [GITHUB] Cannot login on frontend if inline translation is enabled #4925
- Changed attribute to use single quote instead of double.
1 parent 26630f7 commit a4852f8

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Translation/Model/Inline

1 file changed

+2
-2
lines changed

app/code/Magento/Translation/Model/Inline/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,12 @@ private function _prepareTagAttributesForContent(&$content)
436436
$tagHtml = str_replace($matches[0], '', $tagHtml);
437437
$trAttr = ' ' . $this->_getHtmlAttribute(
438438
self::DATA_TRANSLATE,
439-
'[' . htmlspecialchars($matches[1]) . ',' . join(',', $trArr) . ']'
439+
'[' . htmlspecialchars($matches[1]) . ',' . str_replace("\"", "'", join(',', $trArr)) . ']'
440440
);
441441
} else {
442442
$trAttr = ' ' . $this->_getHtmlAttribute(
443443
self::DATA_TRANSLATE,
444-
'[' . join(',', $trArr) . ']'
444+
'[' . str_replace("\"", "'", join(',', $trArr)) . ']'
445445
);
446446
}
447447
$trAttr = $this->_addTranslateAttribute($trAttr);

0 commit comments

Comments
 (0)