aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2018-10-05 19:27:30 +0200
committerM. Dent <dentm42@gmail.com>2018-10-05 19:27:30 +0200
commitf5acbccb79bfa5e7d4e91f7a5452d327535ce932 (patch)
treeadc1e2a78d9dcff7e4c40b89631a9e10fe1c1f8d
parentb5ed1de31e5cd6d1eb510e04bcc414594fd518f4 (diff)
parentd39ebebc9df1c4f85e5ce01f512469848cd64be7 (diff)
downloadvolse-hubzilla-f5acbccb79bfa5e7d4e91f7a5452d327535ce932.tar.gz
volse-hubzilla-f5acbccb79bfa5e7d4e91f7a5452d327535ce932.tar.bz2
volse-hubzilla-f5acbccb79bfa5e7d4e91f7a5452d327535ce932.zip
Merge branch 'dev' into 'dev'
Fix: hooks not added to App::$hooks[] at the time of registration See merge request hubzilla/core!1310
-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
+}