mirror of https://github.com/BOINC/boinc.git
Remove condition to render language selector on community prefs form using radio buttons when 5 or fewer languages are available
(DBOINCP-141)
This commit is contained in:
parent
25cb588984
commit
31419f1271
|
@ -1442,7 +1442,7 @@ function communityprefs_form(&$form_state) {
|
|||
$mode = variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE);
|
||||
$user_preferred_language = user_preferred_language($account);
|
||||
$form['locale']['language'] = array(
|
||||
'#type' => (count($names) <= 5 ? 'radios' : 'select'),
|
||||
'#type' => 'select',
|
||||
'#title' => t('Language'),
|
||||
'#default_value' => check_plain($user_preferred_language->language),
|
||||
'#options' => $names,
|
||||
|
|
Loading…
Reference in New Issue