Skip to content

Commit

Permalink
[Fix] Batch menu items: Translate the menu item title when client is (#…
Browse files Browse the repository at this point in the history
…21748)

administrator
  • Loading branch information
infograf768 authored and ReLater committed Sep 1, 2018
1 parent 72f883f commit 6ec6ece
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/cms/html/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ public static function menuItems($config = array())

$lookup[$item->menutype][] = &$item;

// Translate the menu item title when client is administrator
if ($clientId === 1)
{
$item->text = JText::_($item->text);
}

$item->text = str_repeat('- ', $item->level) . $item->text;
}

Expand Down

0 comments on commit 6ec6ece

Please sign in to comment.