From d39ebebc9df1c4f85e5ce01f512469848cd64be7 Mon Sep 17 00:00:00 2001 From: "M.Dent" Date: Fri, 5 Oct 2018 13:25:16 -0400 Subject: Fix: hooks not added to App::[] at the time of registration --- Zotlabs/Extend/Hook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Zotlabs/Extend/Hook.php b/Zotlabs/Extend/Hook.php index 81260ead6..5a1fe6686 100644 --- a/Zotlabs/Extend/Hook.php +++ b/Zotlabs/Extend/Hook.php @@ -42,6 +42,7 @@ class Hook { intval($version) ); + self::insert($hook, $function, $version, $priority); return $r; } @@ -119,4 +120,4 @@ class Hook { App::$hooks[$hook][] = array('', $fn, $priority, $version); } -} \ No newline at end of file +} -- cgit v1.2.3