aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index f1edf798e..9c8712750 100644
--- a/boot.php
+++ b/boot.php
@@ -516,6 +516,7 @@ function check_config(&$a) {
}
}
}
+ load_hooks();
return;
}}
@@ -2189,6 +2190,7 @@ function unregister_hook($hook,$file,$function) {
if(! function_exists('load_hooks')) {
function load_hooks() {
$a = get_app();
+ $a->hooks = array();
$r = q("SELECT * FROM `hook` WHERE 1");
if(count($r)) {
foreach($r as $rr) {