diff --git a/CHANGES.md b/CHANGES.md index 2b0a7af8..116d8d34 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -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.. diff --git a/core/include/update.inc.php b/core/include/update.inc.php index 312fd6ce..e453defd 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -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 diff --git a/module/search/search.php b/module/search/search.php index 51d96a56..ddd01530 100644 --- a/module/search/search.php +++ b/module/search/search.php @@ -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) {