Merge branch 'master' into 12_dev

This commit is contained in:
Fred Tempez 2022-05-28 18:08:13 +02:00
commit 93d35ba7b2
3 changed files with 3 additions and 36 deletions

View File

@ -14,7 +14,7 @@
- Optimisation du chargement des base de données, mise à jour des scripts jsonDB et dot.
- Connexion persistante, l'activation de la case à cocher *Rester connecté sur ce navigateur* ne ferme pas la session lorsque le navigateur est fermé.
## Version 11.4.03
## Version 11.5.00
### Corrections :
- Ajout d'un nouvelle page, le nom court n'est pas défini.
- Bug de la fonction de copie interne utilisée lors de l'installation de la copie de thème, etc..

View File

@ -838,29 +838,6 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
$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) {
$pageList [] = $parentKey;
foreach ($parentValue as $childKey) {
$pageList [] = $childKey;
}
}
foreach ($pageList as $parentKey => $parent) {
if ($this->getData(['page', $parent, 'moduleId']) === 'download') {
$tempData = $this->getData(['module', $parent, 'items']);
$this->setData(['module', $parent, 'posts', $tempData]);
$this->deleteData(['module', $parent, 'items']);
}
}
// Mise à jour
$this->setData(['core', 'dataVersion', 11403]);
}
// Version 12.0.00
if ($this->getData(['core', 'dataVersion']) < 12000) {
// Supprime un cookie non nécessaire

View File

@ -254,12 +254,7 @@ class search extends common {
}
// Articles d'une sous-page blog ou de news
if (
( $this->getData(['page', $childId, 'moduleId']) === 'blog'
|| $this->getData(['page', $childId, 'moduleId']) === 'news'
|| $this->getData(['page', $childId, 'moduleId']) === 'download'
)
&& $this->getData(['module',$childId,'posts'])
if ( $this->getData([ 'module', $childId, 'posts', 'content'])
) {
foreach($this->getData(['module',$childId,'posts']) as $articleId => $article) {
if($this->getData(['module',$childId,'posts',$articleId,'state']) === true) {
@ -277,12 +272,7 @@ class search extends common {
}
// Articles d'un blog ou de news
if (
( $this->getData(['page', $parentId, 'moduleId']) === 'blog'
|| $this->getData(['page', $parentId, 'moduleId']) === 'news'
|| $this->getData(['page', $parentId, 'moduleId']) === 'download'
)
&& $this->getData(['module',$parentId,'posts'])
if ( $this->getData([ 'module', $parentId, 'posts', 'content'])
) {
foreach($this->getData(['module',$parentId,'posts']) as $articleId => $article) {