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