diff options
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 +} |