diff options
author | Mario Skouat <mario@skouat.org> | 2013-03-23 13:48:46 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-11-22 15:02:44 +0100 |
commit | 3a00cb0c081efff55fd7b1c55c8990c8682e7b8d (patch) | |
tree | e687a85f2ce0fbdc0a8ee1bda721b12c3546c1fd /phpBB/includes/functions_acp.php | |
parent | 5220013f9da1b317aa2961196323c08c70b1df24 (diff) | |
download | forums-3a00cb0c081efff55fd7b1c55c8990c8682e7b8d.tar forums-3a00cb0c081efff55fd7b1c55c8990c8682e7b8d.tar.gz forums-3a00cb0c081efff55fd7b1c55c8990c8682e7b8d.tar.bz2 forums-3a00cb0c081efff55fd7b1c55c8990c8682e7b8d.tar.xz forums-3a00cb0c081efff55fd7b1c55c8990c8682e7b8d.zip |
[ticket/10910] Allow setting size selects in build_cfg_template()
PHPBB3-10910
Diffstat (limited to 'phpBB/includes/functions_acp.php')
-rw-r--r-- | phpBB/includes/functions_acp.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php index b9210114ef..ca116372ba 100644 --- a/phpBB/includes/functions_acp.php +++ b/phpBB/includes/functions_acp.php @@ -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 { |