aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-12-04 09:48:10 -0800
committerNathan Guse <nathaniel.guse@gmail.com>2013-12-04 09:48:10 -0800
commite399a52816c57426de1147d4994df58f4c581313 (patch)
tree73187fd2203278bd155c7d2758c13748de9ccd34 /phpBB/includes
parentb474917ba3fbb26e50a7145fa904efec949f20ce (diff)
parent2f4d15015e7a0e8d8f9a76b60c5c8c0091e399ca (diff)
downloadforums-e399a52816c57426de1147d4994df58f4c581313.tar
forums-e399a52816c57426de1147d4994df58f4c581313.tar.gz
forums-e399a52816c57426de1147d4994df58f4c581313.tar.bz2
forums-e399a52816c57426de1147d4994df58f4c581313.tar.xz
forums-e399a52816c57426de1147d4994df58f4c581313.zip
Merge pull request #1887 from nickvergessen/ticket/skouat/10910
[ticket/10910] Function build_cfg_template() allow $size for $tpl_type = select
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_acp.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php
index b9210114ef..cb44ed2794 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 > 1) ? ' size="' . $size . '"' : '') . '>' . $return . '</select>';
}
else
{