From 0fa852ee4e9c3060ba7fc0daf4b08a44ea151f7f Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 2 Jul 2026 00:01:31 +0200 Subject: =?UTF-8?q?entit=C3=A9=20Presentation,=20MAJ=20filtre=20ViewContro?= =?UTF-8?q?ller::SPECIAL=5FPAGES,=20table=20node=5Fdata=20non=20all=C3=A9g?= =?UTF-8?q?=C3=A9e=20pour=20l'instant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/ViewController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/controller/ViewController.php') diff --git a/src/controller/ViewController.php b/src/controller/ViewController.php index 43db6a6..d1aaee7 100644 --- a/src/controller/ViewController.php +++ b/src/controller/ViewController.php @@ -8,8 +8,9 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\RedirectResponse; -class ViewController -{ +class ViewController{ + const SPECIAL_PAGES = ['article', 'new_page', 'menu_paths', 'user_edit', 'connection', 'emails', 'maintenance']; + static function getWebPage(EntityManager $entityManager, Request $request): Response { /* 1/ 1er contrôle des paramètres */ @@ -17,7 +18,7 @@ class ViewController // mode modification d'une page if(IS_ADMIN && $request->query->has('mode') && $request->query->get('mode') === 'page_modif' - && !in_array(CURRENT_PAGE, ['article', 'new_page', 'menu_paths', 'user_edit', 'connection'])) + && !in_array(CURRENT_PAGE, self::SPECIAL_PAGES)) { MainBuilder::$modif_mode = true; } -- cgit v1.2.3