From 4c6f46efe6032deebf435f43d87b01d43b263bdc Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 19 Sep 2012 20:11:06 +0200 Subject: [PATCH] Also support global template variables in the new template parser --- class.templater.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/class.templater.php b/class.templater.php index ffd1371..4a66bcc 100644 --- a/class.templater.php +++ b/class.templater.php @@ -312,7 +312,11 @@ class Templater /* New parser code */ public static function AdvancedParse($templatename, $localize = array(), $compile = array()) - { + { + global $template_global_vars; + + $compile = array_merge($compile, $template_global_vars); + $template = new Templater(); $template->templatename = $template->basedir . $templatename . $template->extension;; $template->Load($templatename);