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']) ]); ?>