Skip to content

Commit

Permalink
Menu tems select field: no need to escape string value
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Mar 4, 2018
1 parent 19225c0 commit 20f93e5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ function jSelectMenu_" . $this->id . "(id, title, object) {
{
if ($this->element->option && (string) $this->element->option['value'] == '')
{
$title_holder = JText::_($this->element->option, true);
$title_holder = JText::_($this->element->option);
}
else
{
$title_holder = JText::_('COM_MENUS_SELECT_A_MENUITEM', true);
$title_holder = JText::_('COM_MENUS_SELECT_A_MENUITEM');
}
}

Expand Down Expand Up @@ -377,11 +377,11 @@ function jSelectMenu_" . $this->id . "(id, title, object) {
// Placeholder if option is present or not when clearing field
if ($this->element->option && (string) $this->element->option['value'] == '')
{
$title_holder = JText::_($this->element->option, true);
$title_holder = JText::_($this->element->option);
}
else
{
$title_holder = JText::_('COM_MENUS_SELECT_A_MENUITEM', true);
$title_holder = JText::_('COM_MENUS_SELECT_A_MENUITEM');
}

$html .= '<input type="hidden" id="' . $this->id . '_id" ' . $class . ' data-required="' . (int) $this->required . '" name="' . $this->name
Expand Down

0 comments on commit 20f93e5

Please sign in to comment.