diff --git a/core/core.php b/core/core.php index 5635142d..7ca26656 100644 --- a/core/core.php +++ b/core/core.php @@ -992,6 +992,8 @@ class common { // Préparation des clés de légendes pour la v10 // Construire une liste plate de parents et d'enfants + $pageList = array(); + foreach ($this->getHierarchy(null,null,null) as $parentKey=>$parentValue) { $pageList [] = $parentKey; foreach ($parentValue as $childKey) { diff --git a/core/module/config/config.php b/core/module/config/config.php index a1345006..3105ea62 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -495,26 +495,4 @@ class config extends common { 'view' => 'manage' ]); } - - - public function recursiveDirectoryIterator ($directory = null, $files = array()) { - $iterator = new \DirectoryIterator ( $directory ); - - foreach ( $iterator as $info ) { - if ($info->isFile ()) { - $files [$info->__toString ()] = $info; - } elseif (!$info->isDot ()) { - $list = array($info->__toString () => $this->recursiveDirectoryIterator( - $directory.DIRECTORY_SEPARATOR.$info->__toString () - )); - if(!empty($files)) - $files = array_merge_recursive($files, $filest); - else { - $files = $list; - } - } - } - return $files; - } - }