From 423a11ebb3f0d25b8ea3d95b1ab534f294c23e93 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sat, 12 May 2012 03:07:23 +0200 Subject: [PATCH] [CPHP] Enable global template variables in Advanced Parser --- frontend/cphp/class.templater.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/cphp/class.templater.php b/frontend/cphp/class.templater.php index e0c0af5..4588e99 100644 --- a/frontend/cphp/class.templater.php +++ b/frontend/cphp/class.templater.php @@ -297,7 +297,10 @@ class Templater public function Parse($data) { + global $template_global_vars; + $tree = $this->BuildSyntaxTree(); + $data = array_merge($data, $template_global_vars); return $this->root->Evaluate($data); }