summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-05 18:02:08 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-05 18:02:08 +0000
commit19dd7c96a34cce208418a0f3890fd25eb0edc188 (patch)
tree465c36b3da7a34289f9f98c63f649132884f2db3
parente4a4b7cc7ea4a4f719ef5af394350896c90763b1 (diff)
downloadbrdo-19dd7c96a34cce208418a0f3890fd25eb0edc188.tar.gz
brdo-19dd7c96a34cce208418a0f3890fd25eb0edc188.tar.bz2
- Patch #510398 by asimmonds: incorrect CSS class for form element wrappers.
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 18837c6cc..bcbe4573a 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -2607,7 +2607,7 @@ function theme_form_element($element) {
$class[] = 'form-item-' . strtr($element['#type'], array('_' => '-'));
}
if (!empty($element['#name'])) {
- $class[] = strtr($element['#name'], array('_' => '-', '[' => '-', ']' => '')) . '-wrapper';
+ $class[] = strtr($element['#name'], array(' ' => '-', '_' => '-', '[' => '-', ']' => '')) . '-wrapper';
}
$output = '<div class="' . implode(' ', $class) . '">' . "\n";