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

merge-requests/26/head
Dries Buytaert 2010-08-20 01:08:18 +00:00
parent 2ece18cef5
commit 155d2c1d99
1 changed files with 1 additions and 1 deletions

View File

@ -3082,7 +3082,7 @@ function theme_button($variables) {
*/ */
function theme_image_button($variables) { function theme_image_button($variables) {
$element = $variables['element']; $element = $variables['element'];
$element['#attributes']['type'] = 'submit'; $element['#attributes']['type'] = 'image';
$element['#attributes']['name'] = $element['#name']; $element['#attributes']['name'] = $element['#name'];
if (!empty($element['#value'])) { if (!empty($element['#value'])) {
$element['#attributes']['value'] = $element['#value']; $element['#attributes']['value'] = $element['#value'];