2
0
Эх сурвалжийг харах

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

Signed-off-by: emanuele <[email protected]>
emanuele 12 жил өмнө
parent
commit
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?