1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

Merge pull request #1887 from nickvergessen/ticket/skouat/10910

[ticket/10910] Function build_cfg_template() allow $size for $tpl_type = select
This commit is contained in:
Nathan Guse
2013-12-04 09:48:10 -08:00
2 changed files with 53 additions and 1 deletions

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 > 1) ? ' size="' . $size . '"' : '') . '>' . $return . '</select>';
}
else
{