[ticket/10910] Allow setting size selects in build_cfg_template()

PHPBB3-10910
This commit is contained in:
Mario Skouat 2013-03-23 13:48:46 +01:00 committed by Joas Schilling
parent 5220013f9d
commit 3a00cb0c08

View file

@ -363,7 +363,9 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
if ($tpl_type[0] == 'select')
{
$tpl = '<select id="' . $key . '" name="' . $name . '">' . $return . '</select>';
$size = (isset($tpl_type[1])) ? (int) $tpl_type[1] : 1;
$tpl = '<select id="' . $key . '" name="' . $name . '"' . (($size) ? ' size="' . $size . '"' : '') . '>' . $return . '</select>';
}
else
{