Permalink
Browse files

fix(developers): restores missing event/hook handlers in inspector

Fixes #9527
  • Loading branch information...
mrclay committed Mar 24, 2016
1 parent eacce1a commit 70ca4264195c3d05f12f241d0f051896468fe3c9
Showing with 5 additions and 4 deletions.
  1. +5 −4 engine/classes/Elgg/Debug/Inspector.php
@@ -342,13 +342,14 @@ protected function buildHandlerTree($all_handlers) {
foreach ($all_handlers as $hook => $types) {
foreach ($types as $type => $priorities) {
foreach ($priorities as $priority => $handlers) {
ksort($priorities);
array_walk($handlers, function (&$callable) use ($root, $priority) {
foreach ($priorities as $priority => $handlers) {
foreach ($handlers as $callable) {
$description = $this->describeCallable($callable, $root);
$callable = "$priority: $description";
});
$tree[$hook . ',' . $type] = $handlers;
$tree["$hook, $type"][] = $callable;
}
}
}
}

0 comments on commit 70ca426

Please sign in to comment.