correctif format xml
This commit is contained in:
parent
f56790516e
commit
4107cb0df0
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user