From e87172682c4d17fab198cc22e058b26a64ded218 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 16 Dec 2019 14:09:46 +0100 Subject: [PATCH] (10.0.015.dev] --- core/core.php | 2 +- core/module/config/view/index/index.php | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/core/core.php b/core/core.php index 96871f99..b008857b 100644 --- a/core/core.php +++ b/core/core.php @@ -34,7 +34,7 @@ class common { const TEMP_DIR = 'site/tmp/'; // Numéro de version - const ZWII_VERSION = '10.0.014.dev'; + const ZWII_VERSION = '10.0.015.dev'; public static $actions = []; public static $coreModuleIds = [ diff --git a/core/module/config/view/index/index.php b/core/module/config/view/index/index.php index 1af96b4a..f8cc5767 100755 --- a/core/module/config/view/index/index.php +++ b/core/module/config/view/index/index.php @@ -25,7 +25,15 @@

Informations générales

- getData(['page']), 'title', 'SORT_ASC'), [ + getData(['page']); + foreach($pages as $page => $pageId) { + if ($this->getData(['page',$page,'block']) === 'bar' || + $this->getData(['page',$page,'disable']) === true) { + unset($pages[$page]); + } + } + echo template::select('configHomePageId', helper::arrayCollumn($pages, 'title', 'SORT_ASC'), [ 'label' => 'Page d\'accueil', 'selected' =>$this->getData(['config', 'homePageId']) ]); ?>