Merge pull request #23188 from gdsoftdev/hook_order_execution
FIX: Hook order execution
This commit is contained in:
commit
4d8d83e6e2
@ -131,8 +131,10 @@ class HookManager
|
|||||||
dol_syslog(get_class($this)."::initHooks Loading hooks: ".join(', ', $arraytolog), LOG_DEBUG);
|
dol_syslog(get_class($this)."::initHooks Loading hooks: ".join(', ', $arraytolog), LOG_DEBUG);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($this->hooks[$context])) {
|
foreach ($arraycontext as $context) {
|
||||||
ksort($this->hooks[$context], SORT_NATURAL);
|
if (!empty($this->hooks[$context])) {
|
||||||
|
ksort($this->hooks[$context], SORT_NATURAL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user