This commit is contained in:
miguel angel rasteu 2023-07-31 09:27:50 +02:00
parent 95e17b46bf
commit 9781809b22
2 changed files with 6 additions and 0 deletions

View File

@ -682,6 +682,7 @@ class ManageExtensions extends HTML
[ [
'onclick' => 'if (!confirm(\''.__('Deleting this application will also delete all the discovery tasks using it. Do you want to delete it?').'\')) return false;', 'onclick' => 'if (!confirm(\''.__('Deleting this application will also delete all the discovery tasks using it. Do you want to delete it?').'\')) return false;',
'class' => 'main_menu_icon invert_filter action_button_hidden', 'class' => 'main_menu_icon invert_filter action_button_hidden',
'title' => 'Delete',
] ]
); );
$data[$key]['actions'] .= html_print_input_hidden('short_name', $row['short_name'], true); $data[$key]['actions'] .= html_print_input_hidden('short_name', $row['short_name'], true);
@ -697,6 +698,7 @@ class ManageExtensions extends HTML
[ [
'onclick' => 'if (!confirm(\''.__('Are you sure you want to reapply?').'\')) return false;', 'onclick' => 'if (!confirm(\''.__('Are you sure you want to reapply?').'\')) return false;',
'class' => 'main_menu_icon invert_filter action_button_hidden', 'class' => 'main_menu_icon invert_filter action_button_hidden',
'title' => 'Refresh',
] ]
); );
$data[$key]['actions'] .= html_print_input_hidden('sync_action', 'refresh', true); $data[$key]['actions'] .= html_print_input_hidden('sync_action', 'refresh', true);

View File

@ -3342,6 +3342,10 @@ function html_print_input_image($name, $src, $value, $style='', $return=false, $
} }
foreach ($attrs as $attribute) { foreach ($attrs as $attribute) {
if ($attribute === 'title') {
continue;
}
if (isset($options[$attribute])) { if (isset($options[$attribute])) {
$output .= ' '.$attribute.'="'.io_safe_input_html($options[$attribute]).'"'; $output .= ' '.$attribute.'="'.io_safe_input_html($options[$attribute]).'"';
} }