Fix template_var hook
move it to smarty3 replate_macro, pass the theme name in $b
This commit is contained in:
@@ -19,10 +19,6 @@ function replace_macros($s,$r) {
|
||||
|
||||
$stamp1 = microtime(true);
|
||||
|
||||
// "middleware": inject variables into templates
|
||||
call_hooks("template_vars", $r);
|
||||
|
||||
|
||||
$a = get_app();
|
||||
|
||||
$t = $a->template_engine();
|
||||
|
||||
Reference in New Issue
Block a user