diff --git a/system/twig.php b/system/twig.php index 10f77cf3..ecc7a957 100644 --- a/system/twig.php +++ b/system/twig.php @@ -101,6 +101,8 @@ $twig->addFunction($function); $function = new TwigFunction('hook', function ($context, $hook, array $params = []) { global $hooks; + //note($hook); + if(is_string($hook)) { if (defined($hook)) { $hook = constant($hook);