1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[ticket/17151] Revert radio yes_no/enabled_disabled, fix select "selected"

PHPBB3-17151
This commit is contained in:
rxu
2023-10-02 11:55:49 +07:00
parent 6349d3c126
commit b6572652df
5 changed files with 223 additions and 121 deletions

View File

@@ -268,16 +268,9 @@ class manager
{
$config_name = $driver->get_config_name();
return [
'allow_avatar_' . $config_name => [
'lang' => 'ALLOW_' . strtoupper(str_replace('\\', '_', $config_name)),
'validate' => 'bool',
'type' => 'radio',
'function' => 'build_radio',
'params' => ['{CONFIG_VALUE}', '{KEY}', [1 => 'YES', 0 => 'NO']],
'explain' => true
],
];
return array(
'allow_avatar_' . $config_name => array('lang' => 'ALLOW_' . strtoupper(str_replace('\\', '_', $config_name)), 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
);
}
/**