Skip to content
Snippets Groups Projects

Hotline#18395 rss yonne

Merged Ghost User requested to merge hotline#18395_rss_yonne into stable
Compare and
+ 18
6
Preferences
Compare changes
Files
@@ -298,6 +298,18 @@ class CmsController extends Zend_Controller_Action {
}
/**
* @param array $article
*/
protected function _getPubDate($article) {
if ($article->hasEventsDebut())
return $article->getEventsDebut();
if ($article->hasDebut())
return $article->getDebut();
return $article->getDateMaj();
}
/**
* @param array $articles
@@ -313,9 +325,7 @@ class CmsController extends Zend_Controller_Action {
. $this->_request->getServer('HTTP_HOST')
. $this->view->url($article->getUrl()),
'description' => html_entity_decode(Class_CmsUrlTransformer::imgUrlRelativeToAbsolute($article->getFullContent())),
'lastUpdate' => strtotime($article->hasDebut()
? $article->getDebut()
: $article->getDateMaj())
'lastUpdate' => strtotime($this->_getPubDate($article))
];
}