Fix template_var hook

move it to smarty3 replate_macro, pass the theme name in $b
This commit is contained in:
fabrixxm 2015-11-06 19:52:00 +01:00
parent 545a7a80e4
commit 0aa69f134f
3 changed files with 21 additions and 11 deletions

View file

@ -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();