Browse Source

correctif format xml

Branche10.4
Fred Tempez 10 months ago
parent
commit
4107cb0df0
  1. 6
      module/blog/blog.php
  2. 8
      module/news/news.php

6
module/blog/blog.php

@ -130,10 +130,10 @@ class blog extends common {
. '" title="' . $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'title'])
. '" />' .
$this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'content']),
'setAuthor' => $author,
'setId' => helper::baseUrl() .$this->getUrl(0) . '/' . $articleId,
'setDate' => date('r', $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn']))
]);
$newsArticle->setAuthor($author,'no@mail.com');
$newsArticle->setId(helper::baseUrl() .$this->getUrl(0) . '/' . $articleId);
$newsArticle->setDate(date('r', $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'])));
$feeds->addItem($newsArticle);
}
}

8
module/news/news.php

@ -72,11 +72,11 @@ class news extends common {
$newsArticle->addElementArray([
'title' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'title']),
'link' => helper::baseUrl() . $this->getUrl(0),
'description' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'content']),
'setId' => helper::baseUrl() .$this->getUrl(0) . '/' . $newsId,
'setAuthor' => $author,
'setDate' => date('r', $this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'publishedOn']))
'description' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'content'])
]);
$newsArticle->setAuthor($author,'no@mail.com');
$newsArticle->setId(helper::baseUrl() .$this->getUrl(0) . '/' . $newsId);
$newsArticle->setDate(date('r', $this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'publishedOn'])));
$feeds->addItem($newsArticle);
}
}

Loading…
Cancel
Save