use of net.jforum.util.rss.RecentTopicsRSS in project jforum2 by rafaelsteil.
the class RSSAction method recentTopics.
public void recentTopics() {
String title = I18n.getMessage("RSS.RecentTopics.title", new Object[] { SystemGlobals.getValue(ConfigKeys.FORUM_NAME) });
String description = I18n.getMessage("RSS.RecentTopics.description");
List posts = DataAccessDriver.getInstance().newPostDAO().selectHotForRSS(SystemGlobals.getIntValue(ConfigKeys.POSTS_PER_PAGE));
RSSAware rss = new RecentTopicsRSS(title, description, posts);
this.context.put("rssContents", rss.createRSS());
}
Aggregations