modification on leftmenu by hook not applied
related to #23916 -usage of $hookmanager->resArray instead of $hookmanager->results
This commit is contained in:
parent
9d6cf70010
commit
33d35d05b9
@ -883,10 +883,10 @@ function print_left_eldy_menu($db, $menu_array_before, $menu_array_after, &$tabM
|
|||||||
$reshook = $hookmanager->executeHooks('menuLeftMenuItems', $parameters, $hook_items); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('menuLeftMenuItems', $parameters, $hook_items); // Note that $action and $object may have been modified by some hooks
|
||||||
|
|
||||||
if (is_numeric($reshook)) {
|
if (is_numeric($reshook)) {
|
||||||
if ($reshook == 0 && !empty($hookmanager->results)) {
|
if ($reshook == 0 && !empty($hookmanager->resArray)) {
|
||||||
$menu_array[] = $hookmanager->results; // add
|
$menu_array[] = $hookmanager->resArray; // add
|
||||||
} elseif ($reshook == 1) {
|
} elseif ($reshook == 1) {
|
||||||
$menu_array = $hookmanager->results; // replace
|
$menu_array = $hookmanager->resArray; // replace
|
||||||
}
|
}
|
||||||
|
|
||||||
// @todo Sort menu items by 'position' value
|
// @todo Sort menu items by 'position' value
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user