diff options
author | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
commit | eab8a101e7a3fcbb41e01a574985e06c5a3775de (patch) | |
tree | 60f201da5984b0c3638d10da02bba42b61aa3177 /lib/smarty3/sysplugins/smarty_internal_method_getglobal.php | |
parent | 7f38be342c1495aeca418286c15c25c18ac9e142 (diff) |
Updating Smarty
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_getglobal.php')
-rw-r--r-- | lib/smarty3/sysplugins/smarty_internal_method_getglobal.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_method_getglobal.php b/lib/smarty3/sysplugins/smarty_internal_method_getglobal.php index 7a8a9bc..2be11d7 100644 --- a/lib/smarty3/sysplugins/smarty_internal_method_getglobal.php +++ b/lib/smarty3/sysplugins/smarty_internal_method_getglobal.php @@ -21,12 +21,12 @@ class Smarty_Internal_Method_GetGlobal /** * Returns a single or all global variables * - * @api Smarty::getGlobal() + * @api Smarty::getGlobal() * * @param \Smarty_Internal_Data $data - * @param string $varName variable name or null + * @param string $varName variable name or null * - * @return string variable value or or array of variables + * @return string|array variable value or or array of variables */ public function getGlobal(Smarty_Internal_Data $data, $varName = null) { @@ -38,10 +38,10 @@ class Smarty_Internal_Method_GetGlobal } } else { $_result = array(); - foreach (Smarty::$global_tpl_vars AS $key => $var) { + foreach (Smarty::$global_tpl_vars as $key => $var) { $_result[ $key ] = $var->value; } return $_result; } } -}
\ No newline at end of file +} |