From b2c97b7f5840bd1d97504c088f2ed0cd6f65c496 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 14 Feb 2019 13:57:30 +0100 Subject: [PATCH] =?UTF-8?q?Mode=20pleine=20=20config=20module=20:=20am?= =?UTF-8?q?=C3=A9lioration=20du=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/layout/main.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/layout/main.php b/core/layout/main.php index a0bb8eed..7dcd3176 100755 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -152,12 +152,11 @@ $content = 'col' . $blocks[1]; $blockright = 'col' . $blocks[2]; } + // Page pleine pour la configuration des modules et l'édition des pages if (sizeof($blocks) === 1 || - ($this->getData(['page', $this->getUrl(2), 'moduleId']) == '' && - $this->getUrl(1) == 'config' || // Configuration d'un module en page pleibe - $this->getUrl(1) == 'data' || // données de formulaire en page pleine - $this->getUrl(1) == 'comment' // données des commentaires en page pleine - )) { + $this->getUrl(1) === '' || + $this->getData(['page', $this->getUrl(2), 'moduleId']) == '' + ) { ?>showContent();?>