mirror of
https://github.com/friendica/friendica
synced 2024-10-14 06:41:31 +02:00
pass to all templates by default
This commit is contained in:
parent
0a9e017d34
commit
6605e30cf2
|
@ -20,6 +20,10 @@ function replace_macros($s,$r) {
|
|||
$stamp1 = microtime(true);
|
||||
|
||||
$a = get_app();
|
||||
|
||||
// pass $baseurl to all templates
|
||||
$r['$baseurl'] = $a->get_baseurl();
|
||||
|
||||
|
||||
$t = $a->template_engine();
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue