aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-30 03:40:25 -0800
committerfriendica <info@friendica.com>2013-11-30 03:40:25 -0800
commit3163731a3d5705dcdd5373c197f7ab9257d9cf17 (patch)
tree5fe4006b3af001be26a8ed7222462dc2be5f8838
parent1c5f98440da1b4713d0f5b9f8f6a2d3ca39e23af (diff)
downloadvolse-hubzilla-3163731a3d5705dcdd5373c197f7ab9257d9cf17.tar.gz
volse-hubzilla-3163731a3d5705dcdd5373c197f7ab9257d9cf17.tar.bz2
volse-hubzilla-3163731a3d5705dcdd5373c197f7ab9257d9cf17.zip
hooks getting called twice
-rwxr-xr-xinclude/plugin.php4
-rw-r--r--version.inc2
2 files changed, 4 insertions, 2 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));
+
}
/**
diff --git a/version.inc b/version.inc
index 60aa5ecb2..cd8fc4951 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2013-11-29.512
+2013-11-30.513