diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-08-27 06:52:01 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-08-27 06:52:01 -0400 |
commit | ddfc5209d3a8a4b10f66b0ae0497a269ff2bdde1 (patch) | |
tree | 80936d2335aca91c1a3b828c234ae736c811d22b /Zotlabs/Render/SmartyTemplate.php | |
parent | 420aa4bc44a2fdf707b3964582258809f978ea2d (diff) | |
parent | aea2fa1629692cc29f1070a66fbde9fb9ae837a6 (diff) | |
download | volse-hubzilla-ddfc5209d3a8a4b10f66b0ae0497a269ff2bdde1.tar.gz volse-hubzilla-ddfc5209d3a8a4b10f66b0ae0497a269ff2bdde1.tar.bz2 volse-hubzilla-ddfc5209d3a8a4b10f66b0ae0497a269ff2bdde1.zip |
Merge remote-tracking branch 'upstream/dev' into website-export. Added attach_move() to include/attach.php.
Diffstat (limited to 'Zotlabs/Render/SmartyTemplate.php')
-rwxr-xr-x | Zotlabs/Render/SmartyTemplate.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Render/SmartyTemplate.php b/Zotlabs/Render/SmartyTemplate.php index 532d6e42f..b7e68c1bc 100755 --- a/Zotlabs/Render/SmartyTemplate.php +++ b/Zotlabs/Render/SmartyTemplate.php @@ -27,6 +27,12 @@ class SmartyTemplate implements TemplateEngine { public function replace_macros($s, $r) { $template = ''; + + // these are available for use in all templates + + $r['$z_baseurl'] = z_root(); + $r['$z_server_role'] = \Zotlabs\Lib\System::get_server_role(); + if(gettype($s) === 'string') { $template = $s; $s = new SmartyInterface(); |