mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10910] Allow setting size selects in build_cfg_template()
PHPBB3-10910
This commit is contained in:
parent
5220013f9d
commit
3a00cb0c08
1 changed files with 3 additions and 1 deletions
|
@ -363,7 +363,9 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
|
||||||
|
|
||||||
if ($tpl_type[0] == 'select')
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue