aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-xinclude/plugin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/plugin.php b/include/plugin.php
index fd58fb7dd..4d28909d2 100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -187,7 +187,7 @@ function unregister_hook($hook,$file,$function) {
function load_hooks() {
$a = get_app();
- if(! is_array($a->hooks))
+// if(! is_array($a->hooks))
$a->hooks = array();
$r = q("SELECT * FROM hook WHERE true ORDER BY priority DESC");
if($r) {
@@ -197,6 +197,8 @@ function load_hooks() {
$a->hooks[$rr['hook']][] = array($rr['file'],$rr['function']);
}
}
+logger('hooks: ' . print_r($a->hooks,true));
+
}
/**