log call to hooks in debug
This commit is contained in:
parent
47d9208ae9
commit
f9e61f20cc
1 changed files with 7 additions and 4 deletions
|
@ -162,6 +162,8 @@ function call_hooks($name, &$data = null) {
|
|||
|
||||
$a = get_app();
|
||||
|
||||
#logger($name, LOGGER_ALL);
|
||||
|
||||
if((is_array($a->hooks)) && (array_key_exists($name,$a->hooks))) {
|
||||
foreach($a->hooks[$name] as $hook) {
|
||||
// Don't run a theme's hook if the user isn't using the theme
|
||||
|
@ -171,6 +173,7 @@ function call_hooks($name, &$data = null) {
|
|||
@include_once($hook[0]);
|
||||
if(function_exists($hook[1])) {
|
||||
$func = $hook[1];
|
||||
logger($name." => ".$hook[0].":".$func."()", LOGGER_DEBUG);
|
||||
$func($a,$data);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue