From 23dfd13e3a264016efcdcb52c627c34981f99ec7 Mon Sep 17 00:00:00 2001 From: yiidevelop Date: Sat, 17 Aug 2013 01:18:32 +0700 Subject: [PATCH] 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 --- framework/yii/widgets/Menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/widgets/Menu.php b/framework/yii/widgets/Menu.php index 1d36460..8bf845e 100644 --- a/framework/yii/widgets/Menu.php +++ b/framework/yii/widgets/Menu.php @@ -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'])) {