diff --git a/typo3/sysext/setup/Classes/Controller/SetupModuleController.php b/typo3/sysext/setup/Classes/Controller/SetupModuleController.php index 527980e0f4f724dade393f1c6a72eedfd3f4a9cb..a6179152df022d9dc8364b11d280b59be621a848 100644 --- a/typo3/sysext/setup/Classes/Controller/SetupModuleController.php +++ b/typo3/sysext/setup/Classes/Controller/SetupModuleController.php @@ -574,17 +574,17 @@ class SetupModuleController $iconFactory = GeneralUtility::makeInstance(IconFactory::class); if ($avatarFileUid) { $html .= - '<a id="clear_button_' . htmlspecialchars($fieldName) . '" aria-label="' . htmlspecialchars($this->getLanguageService()->getLL('avatar.clear')) . '" ' + '<button type="button" id="clear_button_' . htmlspecialchars($fieldName) . '" aria-label="' . htmlspecialchars($this->getLanguageService()->getLL('avatar.clear')) . '" ' . 'onclick="clearExistingImage(); return false;" class="btn btn-default">' . $iconFactory->getIcon('actions-delete', Icon::SIZE_SMALL) - . '</a>'; + . '</button>'; } $html .= - '<a id="add_button_' . htmlspecialchars($fieldName) . '" class="btn btn-default btn-add-avatar"' + '<button type="button" id="add_button_' . htmlspecialchars($fieldName) . '" class="btn btn-default btn-add-avatar"' . ' aria-label="' . htmlspecialchars($this->getLanguageService()->getLL('avatar.openFileBrowser')) . '"' . ' onclick="openFileBrowser();return false;">' . $iconFactory->getIcon('actions-insert-record', Icon::SIZE_SMALL) - . '</a></div>'; + . '</button></div>'; $this->addAvatarButtonJs($fieldName); break;