hooks getting called twice

This commit is contained in:
friendica 2013-11-30 03:40:25 -08:00
parent 1c5f98440d
commit 3163731a3d
2 changed files with 4 additions and 2 deletions

View File

@ -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));
}
/**

View File

@ -1 +1 @@
2013-11-29.512
2013-11-30.513