Skip to content

Commit

Permalink
Restore icon
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Sep 22, 2018
1 parent 294650e commit ea55903
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Helper/NavigationTreeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ protected static function activeNodes(Request $request, array $nodes = [], $leve

// Init.
$current = false;
$delete = false;

// Determines if the current node matches the URL.
if (true === self::nodeMatch($n, $request)) {
$current = true;
$delete = true;
} else {
$current = self::activeNodes($request, $n->getNodes(), $level + 1);
}
Expand All @@ -67,11 +65,6 @@ protected static function activeNodes(Request $request, array $nodes = [], $leve
// Mark the node as active.
$n->setActive(true);

// Remove the icon only on the last level.
if (true === $delete && 0 < $level) {
$n->setIcon(null);
}

// Set the result.
$result = true;
}
Expand Down

0 comments on commit ea55903

Please sign in to comment.