mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
add sticky thead to index, langues, and mots-clés tables
This commit is contained in:
@@ -54,6 +54,16 @@ try {
|
||||
$db->deleteLanguage($id);
|
||||
break;
|
||||
|
||||
case 'delete_bulk':
|
||||
$sourceIds = isset($_POST['selected_langs']) && is_array($_POST['selected_langs'])
|
||||
? array_map('intval', $_POST['selected_langs'])
|
||||
: [];
|
||||
if (empty($sourceIds)) throw new Exception("Aucune langue sélectionnée.");
|
||||
foreach ($sourceIds as $sid) {
|
||||
$db->deleteLanguage($sid);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new Exception("Action inconnue.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user