Skip to content

Commit

Permalink
Issue #16034 fix: added jText for data attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilesh More committed Jun 17, 2017
1 parent 656d0ed commit f9afd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/form/field.php
Expand Up @@ -536,7 +536,7 @@ public function __set($name, $value)
break;

case $this->dataAttributeName = $this->dataAttributeName ? $this->dataAttributeName : '' === $name:
$this->dataAttributeValues[] = $name . '="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '"';
$this->dataAttributeValues[] = $name . '="' . htmlspecialchars(JText::_($value), ENT_COMPAT, 'UTF-8') . '"';
break;

default:
Expand Down

0 comments on commit f9afd2d

Please sign in to comment.