Mise à jour structure pour download 2.6
This commit is contained in:
parent
18563c61bc
commit
b908be1287
@ -3,6 +3,9 @@
|
|||||||
## Version 11.4.03
|
## Version 11.4.03
|
||||||
### Corrections :
|
### Corrections :
|
||||||
- Ajout d'un nouvelle page, le nom court n'est pas défini.
|
- Ajout d'un nouvelle page, le nom court n'est pas défini.
|
||||||
|
### Modifications :
|
||||||
|
- Le module de recherche analyse les descriptions du module Download (Téléchargement).
|
||||||
|
- Prise en compte des modifications liées à la mise à jour du module Download (Téléchargement), actualisation du changement de structure 'posts' remplace 'items'
|
||||||
|
|
||||||
## Version 11.4.02
|
## Version 11.4.02
|
||||||
### Modification :
|
### Modification :
|
||||||
|
@ -957,10 +957,17 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
|
|||||||
// Redirection des pages d'administration vers la bannière de connexion
|
// Redirection des pages d'administration vers la bannière de connexion
|
||||||
$this->setData(['config', 'connect', 'redirectLogin', true]);
|
$this->setData(['config', 'connect', 'redirectLogin', true]);
|
||||||
|
|
||||||
// Transforme les URL en références relatives
|
// Suppression de la variable URL dans core
|
||||||
/*
|
$this->deleteData(['core', 'baseUrl']);
|
||||||
$baseUrl = $this->getData(['core', 'baseUrl']);
|
|
||||||
$baseUrl2 = str_replace('?', '', $baseUrl);
|
// Mise à jour
|
||||||
|
$this->setData(['core', 'dataVersion', 11400]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Version 11.4.03
|
||||||
|
if ($this->getData(['core', 'dataVersion']) < 11403) {
|
||||||
|
|
||||||
|
// Modification de structure du module download
|
||||||
foreach ($this->getHierarchy(null,null,null) as $parentKey=>$parentValue) {
|
foreach ($this->getHierarchy(null,null,null) as $parentKey=>$parentValue) {
|
||||||
$pageList [] = $parentKey;
|
$pageList [] = $parentKey;
|
||||||
foreach ($parentValue as $childKey) {
|
foreach ($parentValue as $childKey) {
|
||||||
@ -968,17 +975,14 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ($pageList as $parentKey => $parent) {
|
foreach ($pageList as $parentKey => $parent) {
|
||||||
$s = $this->getPage( $parent, self::$i18n);
|
if ($this->getData(['page', $parent, 'moduleId']) === 'download') {
|
||||||
// Suppression des sous-dossiers
|
$tempData = $this->getData(['module', $parent, 'items']);
|
||||||
$s = str_replace ($baseUrl, './', $s);
|
$this->setData(['module', $parent, 'posts', $tempData]);
|
||||||
$s = str_replace ($baseUrl2, './', $s);
|
$this->deleteData(['module', $parent, 'items']);
|
||||||
$this->setPage( $parent, $s, self::$i18n);
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
// Suppression de la variable URL dans core
|
|
||||||
$this->deleteData(['core', 'baseUrl']);
|
|
||||||
|
|
||||||
// Mise à jour
|
// Mise à jour
|
||||||
$this->setData(['core', 'dataVersion', 11400]);
|
$this->setData(['core', 'dataVersion', 11403]);
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user