diff --git a/module/blog/blog.php b/module/blog/blog.php index cdba843c..05ce4b4c 100755 --- a/module/blog/blog.php +++ b/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); } } diff --git a/module/news/news.php b/module/news/news.php index 1e7f9959..9204a179 100755 --- a/module/news/news.php +++ b/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); } }