forked from ZwiiCMS-Team/ZwiiCMS
[9.1.09] Nettoyage du core installation simple
This commit is contained in:
parent
0915c3a2ea
commit
7e3eb1bc00
@ -53,12 +53,16 @@ class install extends common {
|
||||
if ($this->getInput('installDefaultData',helper::FILTER_BOOLEAN) === FALSE) {
|
||||
foreach($this->getHierarchy(null, false) as $parentPageId => $childrenPageIds) {
|
||||
if ( $parentPageId !== 'accueil') {
|
||||
$this->deleteData(['page',$parentPageId]);
|
||||
if ($this->getdata(['page',$parentPageId,'moduleId'])) {
|
||||
$this->deleteData(['page',$parentPageId]);
|
||||
}
|
||||
}
|
||||
foreach($childrenPageIds as $childKey) {
|
||||
$this->deleteData(['page', $childKey]);
|
||||
}
|
||||
}
|
||||
// Effacer les modules
|
||||
$this->deleteData(['module']);
|
||||
// Ajouter ici la liste des pages privées qui ne sont pas vues lors de l'installation.
|
||||
$this->deleteData(['page', 'privee']);
|
||||
// Effacer les fichiers par défaut
|
||||
|
Loading…
Reference in New Issue
Block a user