Fixed adding new note

This commit is contained in:
2026-08-25 16:42:26 +01:00
parent ee6c739305
commit bb2602e0d2
3 changed files with 37 additions and 7 deletions
+28
View File
@@ -419,3 +419,31 @@ function delete_subnote($blocknote_id, $note_id, $sub_id, $username, $is_admin)
}
return ['success' => false, 'message' => 'Errore nel salvataggio.'];
}
/**
* Compatibility Aliases
*/
function add_note_to_blocknote($blocknote_id, $title, $description, $username, $is_admin) {
return add_note($blocknote_id, $title, $description, $username, $is_admin);
}
function edit_note_in_blocknote($blocknote_id, $note_id, $title, $description, $username, $is_admin) {
return edit_note($blocknote_id, $note_id, $title, $description, $username, $is_admin);
}
function delete_note_from_blocknote($blocknote_id, $note_id, $username, $is_admin) {
return delete_note($blocknote_id, $note_id, $username, $is_admin);
}
function add_subnote_to_note($blocknote_id, $note_id, $sub_title, $type, $content, $username, $is_admin) {
return add_subnote($blocknote_id, $note_id, $sub_title, $type, $content, $username, $is_admin);
}
function edit_subnote_in_note($blocknote_id, $note_id, $sub_id, $sub_title, $type, $content, $username, $is_admin) {
return edit_subnote($blocknote_id, $note_id, $sub_id, $sub_title, $type, $content, $username, $is_admin);
}
function delete_subnote_from_note($blocknote_id, $note_id, $sub_id, $username, $is_admin) {
return delete_subnote($blocknote_id, $note_id, $sub_id, $username, $is_admin);
}