From 4e27765e12020dd3d298a30399d6ab96d3ba69cc Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 7 Apr 2020 10:41:41 +0200 Subject: [PATCH] =?UTF-8?q?Liste=20des=20modules=20de=20page=20Aucun=20tou?= =?UTF-8?q?jours=20en=20t=C3=AAte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/page/page.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/module/page/page.php b/core/module/page/page.php index c1d8acb8..de6bdc2b 100755 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -317,9 +317,7 @@ class page extends common { } } // Liste des modules - $moduleIds = [ - '' => 'Aucun' - ]; + $moduleIds = []; $iterator = new DirectoryIterator('module/'); foreach($iterator as $fileInfos) { if(is_file($fileInfos->getPathname() . '/' . $fileInfos->getFilename() . '.php')) { @@ -332,6 +330,7 @@ class page extends common { } self::$moduleIds = $moduleIds; asort(self::$moduleIds); + self::$moduleIds = array_merge( ['' => 'Aucun'] , self::$moduleIds); // Pages sans parent foreach($this->getHierarchy() as $parentPageId => $childrenPageIds) { if($parentPageId !== $this->getUrl(2)) {