correctif format xml

This commit is contained in:
Fred Tempez 2020-11-20 17:32:38 +01:00
parent f56790516e
commit 4107cb0df0
2 changed files with 7 additions and 7 deletions

View File

@ -130,10 +130,10 @@ class blog extends common {
. '" title="' . $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'title']) . '" title="' . $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'title'])
. '" />' . . '" />' .
$this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'content']), $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); $feeds->addItem($newsArticle);
} }
} }

View File

@ -72,11 +72,11 @@ class news extends common {
$newsArticle->addElementArray([ $newsArticle->addElementArray([
'title' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'title']), 'title' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'title']),
'link' => helper::baseUrl() . $this->getUrl(0), 'link' => helper::baseUrl() . $this->getUrl(0),
'description' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'content']), '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']))
]); ]);
$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); $feeds->addItem($newsArticle);
} }
} }