25 function smarty_function_configvalue($params, \Smarty_Internal_Template $template) {
26 $config = ObjectFactory::getInstance(
'configuration');
27 $value = $config->getValue($params[
'key'], $params[
'section'],
false);
28 if (isset($params[
'varname'])) {
29 $template->assign($params[
'varname'], $value);