Fix: hooks not added to App::[] at the time of registration
This commit is contained in:
parent
b5ed1de31e
commit
d39ebebc9d
@ -42,6 +42,7 @@ class Hook {
|
|||||||
intval($version)
|
intval($version)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
self::insert($hook, $function, $version, $priority);
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,4 +120,4 @@ class Hook {
|
|||||||
App::$hooks[$hook][] = array('', $fn, $priority, $version);
|
App::$hooks[$hook][] = array('', $fn, $priority, $version);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user