From 1e2cee519264f9ab2660540723915aec72bc2116 Mon Sep 17 00:00:00 2001 From: polo Date: Mon, 20 Oct 2025 01:57:21 +0200 Subject: =?UTF-8?q?noeud=20"head"=20unique,=20noms=20fichiers=20CSS=20et?= =?UTF-8?q?=20JSS=20dans=20page,=20nombreux=20changements=20en=20cons?= =?UTF-8?q?=C3=A9quences?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/ArticleController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/controller/ArticleController.php') diff --git a/src/controller/ArticleController.php b/src/controller/ArticleController.php index 06562e7..7061897 100644 --- a/src/controller/ArticleController.php +++ b/src/controller/ArticleController.php @@ -92,7 +92,7 @@ class ArticleController $date = new \DateTime($content['d'] . ':' . (new \DateTime)->format('s')); // l'input type="datetime-local" ne donne pas les secondes, on les ajoute: 'hh:mm' . ':ss' $article = new Article($content['i'], $date, $content['t'], $content['p']); - $article_node = new Node('new', [], count($node->getChildren()) + 1, $node, $node->getPage(), $article); + $article_node = new Node('new', count($node->getChildren()) + 1, $node, $node->getPage(), $article); } else{ // autres cas $timestamp = time(); @@ -101,7 +101,7 @@ class ArticleController $article = new Article($content, $date); // le "current" timestamp est obtenu par la BDD $placement = $json['placement'] === 'first' ? 0 : count($node->getChildren()) + 1; // - $article_node = new Node('post', [], $placement, $node, $node->getPage(), $article); + $article_node = new Node('post', $placement, $node, $node->getPage(), $article); if($json['placement'] === 'first'){ $node->addChild($article_node); -- cgit v1.2.3