Skip to content

Commit

Permalink
Adminhtml: better highlight for selected items in menu (#2738)
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab authored Dec 1, 2022
1 parent a6f8323 commit 689c749
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/code/core/Mage/Adminhtml/Block/Page/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,8 @@ public function getMenuLevel($menu, $level = 0)
. (!empty($item['title']) ? 'title="' . $item['title'] . '"' : '') . ' '
. (!empty($item['target']) ? 'target="' . $item['target'] . '"' : '') . ' '
. (!empty($item['click']) ? 'onclick="' . $item['click'] . '"' : '') . ' class="'
. ($level === 0 && !empty($item['active']) ? 'active' : '') . '"><span>'
. (!empty($item['active']) ? 'active' : '') . '"><span>'
. $this->escapeHtml($item['label']) . '</span></a>' . PHP_EOL;

if (!empty($item['children'])) {
$html .= $this->getMenuLevel($item['children'], $level + 1);
}
Expand Down

0 comments on commit 689c749

Please sign in to comment.