mirror of
https://github.com/friendica/friendica
synced 2024-12-21 17:14:54 +01:00
pass to all templates by default
This commit is contained in:
parent
0a9e017d34
commit
6605e30cf2
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ function replace_macros($s,$r) {
|
||||||
|
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
||||||
|
// pass $baseurl to all templates
|
||||||
|
$r['$baseurl'] = $a->get_baseurl();
|
||||||
|
|
||||||
|
|
||||||
$t = $a->template_engine();
|
$t = $a->template_engine();
|
||||||
try {
|
try {
|
||||||
$output = $t->replace_macros($s,$r);
|
$output = $t->replace_macros($s,$r);
|
||||||
|
|
Loading…
Reference in a new issue