Index: branches/5.2.x/core/kernel/processors/main_processor.php =================================================================== diff -u -N -r14745 -r14833 --- branches/5.2.x/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 14745) +++ branches/5.2.x/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 14833) @@ -1,6 +1,6 @@ SelectParam($params, 'name,var'); + $ret = $this->Application->ConfigValue($config_name); - return $this->Application->ConfigValue($config_name); + if ( isset($params['formatted']) && $params['formatted'] ) { + $sql = 'SELECT ValueList + FROM ' . TABLE_PREFIX . 'ConfigurationValues + WHERE VariableName = ' . $this->Conn->qstr($config_name) . ' AND ElementType IN ("select", "radio")'; + $value_list = $this->Conn->GetOne($sql); + + if ( $value_list ) { + $helper =& $this->Application->recallObject('InpCustomFieldsHelper'); + /* @var $helper InpCustomFieldsHelper */ + + $options = $helper->GetValuesHash($value_list); + $ret = isset($options[$ret]) ? $options[$ret] : $ret; + } + } + + if ( isset($params['as_label']) && $params['as_label'] ) { + $ret = $this->Application->Phrase($ret); + } + + return $ret; } /**