From 8e75ee9ee7a6c31f965f7b0763fb3dc5ca516115 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 27 Dec 2012 22:28:53 +0100 Subject: [PATCH] Add function to set a global templater variable --- class.templater.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/class.templater.php b/class.templater.php index 55fe397..0c41d1a 100644 --- a/class.templater.php +++ b/class.templater.php @@ -50,6 +50,13 @@ class NewTemplater ) ); + public static function SetGlobalVariable($key, $value) + { + global $template_global_vars; + + $template_global_vars[$key] = $value; + } + public static function Render($template_name, $localized_strings, $data) { global $template_global_vars, $cphp_debug_enabled;