forked from ZwiiCMS-Team/ZwiiCMS
Liste des modules de page Aucun toujours en tête
This commit is contained in:
parent
04c8f207b1
commit
4e27765e12
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user