diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-09-17 14:10:53 -0400 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-09-17 14:10:53 -0400 |
commit | 89c036717f583242bef91c90171627fe3c3de1bc (patch) | |
tree | aa26530232c070969bd540df448f596e614de8a6 /includes/theme.inc | |
parent | a9ad3ea15a528be270a3a2a15e019c8ae0bb81d4 (diff) | |
download | brdo-89c036717f583242bef91c90171627fe3c3de1bc.tar.gz brdo-89c036717f583242bef91c90171627fe3c3de1bc.tar.bz2 |
- Patch #952772 by oriol_e9g, mdupont, bleen18, idflood: theme_html_tag() optional value not really optional.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 6c2b64069..49865cfe0 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1902,11 +1902,12 @@ function theme_feed_icon($variables) { */ function theme_html_tag($variables) { $element = $variables['element']; + $attributes = isset($element['#attributes']) ? drupal_attributes($element['#attributes']) : ''; if (!isset($element['#value'])) { - return '<' . $element['#tag'] . drupal_attributes($element['#attributes']) . " />\n"; + return '<' . $element['#tag'] . $attributes . " />\n"; } else { - $output = '<' . $element['#tag'] . drupal_attributes($element['#attributes']) . '>'; + $output = '<' . $element['#tag'] . $attributes . '>'; if (isset($element['#value_prefix'])) { $output .= $element['#value_prefix']; } |