Commit 23dfd13e by yiidevelop

Fix function argument

```php normalizeItems($items, &$active) ``` Qiang use ```php $items[$i]['items'] = $this->normalizeItems($item['items'], $route, $hasActiveChild); ``` So $hasActiveChild not assign value and parent item not set activated Plz, review and approval Thanks
parent 3450a6c5
......@@ -250,7 +250,7 @@ class Menu extends Widget
}
$hasActiveChild = false;
if (isset($item['items'])) {
$items[$i]['items'] = $this->normalizeItems($item['items'], $route, $hasActiveChild);
$items[$i]['items'] = $this->normalizeItems($item['items'], $hasActiveChild);
if (empty($items[$i]['items']) && $this->hideEmptyItems) {
unset($items[$i]['items']);
if (!isset($item['url'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment