Index: main_processor.php =================================================================== --- main_processor.php (revision 15085) +++ main_processor.php (working copy) @@ -393,8 +393,20 @@ function Get($params) { $name = $this->SelectParam($params, 'name,var,param'); - $ret = $this->Application->GetVar($name, ''); + if ( strpos($name, '[') !== false ) { + preg_match('/([^\[\]]+)\[(.*)\]/', $name, $regs); + + $function_params = explode('][', $regs[2]); + $ret = $this->Application->GetVar($regs[1], Array ()); + array_unshift_ref($function_params, $ret); + + return call_user_func_array('getArrayValue', $function_params); + } + else { + $ret = $this->Application->GetVar($name, ''); + } + if (array_key_exists('no_html_escape', $params) && $params['no_html_escape']) { return kUtil::unhtmlentities($ret); }