You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-07 17:42:53 +03:00
update Smarty to v3.1.33 - "This release does cover security issue CVE-2018-16831, other bug fixes (see changelog.txt) and adds a new feature of the {capture} tag (see NEW_FEATURES.txt)."
This commit is contained in:
@@ -21,10 +21,10 @@ 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|array variable value or or array of variables
|
||||
*/
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user