pass to all templates by default

This commit is contained in:
Fabrixxm 2015-11-13 10:56:37 +01:00
parent 0a9e017d34
commit 6605e30cf2

View file

@ -21,6 +21,10 @@ function replace_macros($s,$r) {
$a = get_app();
// pass $baseurl to all templates
$r['$baseurl'] = $a->get_baseurl();
$t = $a->template_engine();
try {
$output = $t->replace_macros($s,$r);