Commit b82738fa authored by Gábor Hojtsy's avatar Gábor Hojtsy

#195540 by hass: fix XHTML validity with disabled checkbox in locales form

parent efbd1db5
......@@ -71,7 +71,7 @@ function theme_locale_languages_overview_form($form) {
if (is_array($element) && element_child($key)) {
// Disable checkbox for the default language, because it cannot be disabled.
if ($key == $default->language) {
$form['enabled'][$key]['#attributes']['disabled'] = TRUE;
$form['enabled'][$key]['#attributes']['disabled'] = 'disabled';
}
$rows[] = array(
array('data' => drupal_render($form['enabled'][$key]), 'align' => 'center'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment