fix mulitple module using completeTabsHead
complete $template['head'] in module and return 0 to not replace instead return $head and replace
This commit is contained in:
parent
e791f9b863
commit
a56dc4ff65
@ -8385,12 +8385,12 @@ function complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type,
|
|||||||
|
|
||||||
// No need to make a return $head. Var is modified as a reference
|
// No need to make a return $head. Var is modified as a reference
|
||||||
if (!empty($hookmanager)) {
|
if (!empty($hookmanager)) {
|
||||||
$parameters = array('object' => $object, 'mode' => $mode, 'head' => $head);
|
$parameters = array('object' => $object, 'mode' => $mode, 'head' => &$head);
|
||||||
$reshook = $hookmanager->executeHooks('completeTabsHead', $parameters);
|
$reshook = $hookmanager->executeHooks('completeTabsHead', $parameters);
|
||||||
if ($reshook > 0) {
|
if ($reshook > 0) {
|
||||||
$head = $hookmanager->resArray;
|
$head = $hookmanager->resArray;
|
||||||
$h = count($head);
|
|
||||||
}
|
}
|
||||||
|
$h = count($head);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user