Browse Source

search correctif pour download

master
Fred Tempez 2 months ago
parent
commit
9c6ef7a346
  1. 22
      module/search/search.php

22
module/search/search.php

@ -19,7 +19,7 @@
class search extends common {
const VERSION = '2.4';
const VERSION = '2.5';
const REALNAME = 'Recherche';
const DATADIRECTORY = self::DATA_DIR . 'search/';
@ -254,9 +254,13 @@ 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(['module',$parentId,'posts']) )
{
if (
( $this->getData(['page', $childId, 'moduleId']) === 'blog'
|| $this->getData(['page', $childId, 'moduleId']) === 'news'
|| $this->getData(['page', $childId, 'moduleId']) === 'download'
)
&& $this->getData(['module',$childId,'posts'])
) {
foreach($this->getData(['module',$childId,'posts']) as $articleId => $article) {
if($this->getData(['module',$childId,'posts',$articleId,'state']) === true) {
$url = $childId . '/' . $articleId;
@ -273,8 +277,14 @@ 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(['module',$parentId,'posts']) ) {
if (
( $this->getData(['page', $parentId, 'moduleId']) === 'blog'
|| $this->getData(['page', $parentId, 'moduleId']) === 'news'
|| $this->getData(['page', $parentId, 'moduleId']) === 'download'
)
&& $this->getData(['module',$parentId,'posts'])
) {
foreach($this->getData(['module',$parentId,'posts']) as $articleId => $article) {
if($this->getData(['module',$parentId,'posts',$articleId,'state']) === true)
{

Loading…
Cancel
Save