aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Extend/Hook.php
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-10-05 13:25:16 -0400
committerM.Dent <dentm42@dm42.net>2018-10-05 13:25:16 -0400
commitd39ebebc9df1c4f85e5ce01f512469848cd64be7 (patch)
treeadc1e2a78d9dcff7e4c40b89631a9e10fe1c1f8d /Zotlabs/Extend/Hook.php
parentb5ed1de31e5cd6d1eb510e04bcc414594fd518f4 (diff)
downloadvolse-hubzilla-d39ebebc9df1c4f85e5ce01f512469848cd64be7.tar.gz
volse-hubzilla-d39ebebc9df1c4f85e5ce01f512469848cd64be7.tar.bz2
volse-hubzilla-d39ebebc9df1c4f85e5ce01f512469848cd64be7.zip
Fix: hooks not added to App::[] at the time of registration
Diffstat (limited to 'Zotlabs/Extend/Hook.php')
-rw-r--r--Zotlabs/Extend/Hook.php3
1 files changed, 2 insertions, 1 deletions
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
+}