aboutsummaryrefslogtreecommitdiff
path: root/src/controller/ArticleController.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-09-01 18:52:17 +0200
committerpolo <ordipolo@gmx.fr>2025-09-01 18:52:17 +0200
commitf477314613beb26b0ce4c61ec0b1900df1de1cb1 (patch)
treed41ace78a572a11887e7cfa2611c3f02fb04e51c /src/controller/ArticleController.php
parente642cd51d7e8599537f8514bef8d5d16096dddf8 (diff)
downloadcms-f477314613beb26b0ce4c61ec0b1900df1de1cb1.zip
renommage des présentations,modif présentation des blocs et largeur min (donc nb de colonnes) en mode grid, corrections de bugs et erreurs 404, le param page_modif n'est plus une action, légère symfonyfication du routeur
Diffstat (limited to 'src/controller/ArticleController.php')
-rw-r--r--src/controller/ArticleController.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/controller/ArticleController.php b/src/controller/ArticleController.php
index 71bfdc3..b8af290 100644
--- a/src/controller/ArticleController.php
+++ b/src/controller/ArticleController.php
@@ -32,7 +32,10 @@ class ArticleController
32 if($id[0] === 'n') 32 if($id[0] === 'n')
33 { 33 {
34 $section_id = (int)substr($id, 1); // id du bloc <section> 34 $section_id = (int)substr($id, 1); // id du bloc <section>
35 $director->findNodeById($section_id); 35 if(!$director->findNodeById($section_id)){
36 echo json_encode(['success' => false, 'error' => 'article_not_saved']);
37 die;
38 }
36 $director->makeSectionNode(); 39 $director->makeSectionNode();
37 $node = $director->getNode(); // = <section> 40 $node = $director->getNode(); // = <section>
38 41