소스 검색

integrate_*_areas should check menu_context and not menuOptions...I think

Signed-off-by: emanuele <[email protected]>
emanuele 12 년 전
부모
커밋
80ca0d95b9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/Subs-Menu.php

+ 1 - 1
Sources/Subs-Menu.php

@@ -67,7 +67,7 @@ function createMenu($menuData, $menuOptions = array())
 	$menu_context['current_action'] = isset($menuOptions['action']) ? $menuOptions['action'] : $context['current_action'];
 
 	// Allow extend *any* menu with a single hook
-	if (!empty($menuOptions['action']))
+	if (!empty($menu_context['current_action']))
 		call_integration_hook('integrate_' . $menu_context['current_action'] . '_areas', array(&$menuData));
 
 	// What is the current area selected?