]> git.mxchange.org Git - friendica.git/commitdiff
pass to all templates by default
authorFabrixxm <fabrix.xm@gmail.com>
Fri, 13 Nov 2015 09:56:37 +0000 (10:56 +0100)
committerFabrixxm <fabrix.xm@gmail.com>
Fri, 13 Nov 2015 09:56:37 +0000 (10:56 +0100)
include/text.php

index b5010864e68853b82c2f93b1e0c6f7b7941d5262..f210bff72100c363ee4355fb0a07eed4a86d90f8 100644 (file)
@@ -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 {