feat: métadonnées étendues (author, revisions), migration BDD → fichiers

This commit is contained in:
Cedric Abonnel
2026-05-08 22:49:51 +02:00
parent fd3fced0d8
commit a36d7ede76
111 changed files with 4860 additions and 70 deletions
+3 -2
View File
@@ -38,7 +38,7 @@ switch ($action) {
$errors[] = 'Le titre est obligatoire.';
}
if (empty($errors)) {
$newUuid = $articles->create($title, $content, $published, $postSlug, $published_at);
$newUuid = $articles->create($title, $content, $published, $postSlug, $published_at, currentUserEmail() ?? '');
foreach ($_FILES['files']['tmp_name'] ?? [] as $i => $tmpName) {
if ($_FILES['files']['error'][$i] === UPLOAD_ERR_OK) {
@@ -105,7 +105,8 @@ switch ($action) {
$content,
$published,
$_POST['slug'] ?? '',
str_replace('T', ' ', $_POST['published_at'] ?? '')
str_replace('T', ' ', $_POST['published_at'] ?? ''),
$_POST['revision_comment'] ?? ''
);
foreach ($_FILES['files']['tmp_name'] ?? [] as $i => $tmpName) {