Commit 155d2c1d authored by Dries's avatar Dries

- Patch #883336 by sun, andypost: theme_image_button() broken.

parent 2ece18ce
......@@ -3082,7 +3082,7 @@ function theme_button($variables) {
*/
function theme_image_button($variables) {
$element = $variables['element'];
$element['#attributes']['type'] = 'submit';
$element['#attributes']['type'] = 'image';
$element['#attributes']['name'] = $element['#name'];
if (!empty($element['#value'])) {
$element['#attributes']['value'] = $element['#value'];
......
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