mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
add support for multiple_select
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9369 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
228e693559
commit
549fefecb2
@ -301,6 +301,7 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
|
||||
break;
|
||||
|
||||
case 'select':
|
||||
case 'select_multiple':
|
||||
case 'custom':
|
||||
|
||||
$return = '';
|
||||
@ -339,12 +340,21 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($tpl_type[0] == 'select_multiple')
|
||||
{
|
||||
$new[$config_key] = @unserialize(trim($new[$config_key]));
|
||||
}
|
||||
|
||||
$args = array($new[$config_key], $key);
|
||||
}
|
||||
|
||||
$return = call_user_func_array($call, $args);
|
||||
|
||||
if ($tpl_type[0] == 'select')
|
||||
if ($tpl_type[0] == 'select_multiple')
|
||||
{
|
||||
$tpl = '<select id="' . $key . '" name="' . $name . '[]" multiple="multiple">' . $return . '</select>';
|
||||
}
|
||||
else if ($tpl_type[0] == 'select')
|
||||
{
|
||||
$tpl = '<select id="' . $key . '" name="' . $name . '">' . $return . '</select>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user