From 8863159339b73b7abd7d3f148dc0ad862994be07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Thu, 3 Jan 2019 16:04:52 -0500 Subject: first commit --- .../smarty_internal_method_getglobal.php | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 smarty/libs/sysplugins/smarty_internal_method_getglobal.php (limited to 'smarty/libs/sysplugins/smarty_internal_method_getglobal.php') diff --git a/smarty/libs/sysplugins/smarty_internal_method_getglobal.php b/smarty/libs/sysplugins/smarty_internal_method_getglobal.php new file mode 100644 index 0000000..7a8a9bc --- /dev/null +++ b/smarty/libs/sysplugins/smarty_internal_method_getglobal.php @@ -0,0 +1,47 @@ +value; + } else { + return ''; + } + } else { + $_result = array(); + foreach (Smarty::$global_tpl_vars AS $key => $var) { + $_result[ $key ] = $var->value; + } + return $_result; + } + } +} \ No newline at end of file -- cgit v1.2.3