mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
[ticket/10910] Allow setting size selects in build_cfg_template()
PHPBB3-10910
This commit is contained in:
committed by
Joas Schilling
parent
5220013f9d
commit
3a00cb0c08
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user