Skip to content

Commit

Permalink
[3.9] redo of #240 in the right branch (#21897)
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon authored and Michael Babker committed Sep 9, 2018
1 parent 6889221 commit e62a500
Showing 1 changed file with 11 additions and 8 deletions.
Expand Up @@ -47,17 +47,20 @@ public function getOptions()

$options = array();

foreach ($context as $item)
if (count($context) > 0)
{
$extensions[] = strtok($item, '.');
}
foreach ($context as $item)
{
$extensions[] = strtok($item, '.');
}

$extensions = array_unique($extensions);
$extensions = array_unique($extensions);

foreach ($extensions as $extension)
{
ActionlogsHelper::loadTranslationFiles($extension);
$options[] = JHtml::_('select.option', $extension, JText::_($extension));
foreach ($extensions as $extension)
{
ActionlogsHelper::loadTranslationFiles($extension);
$options[] = JHtml::_('select.option', $extension, JText::_($extension));
}
}

return array_merge(parent::getOptions(), $options);
Expand Down

0 comments on commit e62a500

Please sign in to comment.