From: Fabrixxm Date: Fri, 13 Nov 2015 09:56:37 +0000 (+0100) Subject: pass to all templates by default X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6605e30cf2eea2cffe6dd208af1615db9d212d40;p=friendica.git pass to all templates by default --- diff --git a/include/text.php b/include/text.php index b5010864e6..f210bff721 100644 --- a/include/text.php +++ b/include/text.php @@ -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 {