##// END OF EJS Templates
Fixed: Feed content limit setting has no effect (closes #954)....
Jean-Philippe Lang -
r1295:faf1f1e812b3
parent child
Show More
@@ -150,6 +150,7 class ApplicationController < ActionController::Base
150 def render_feed(items, options={})
150 def render_feed(items, options={})
151 @items = items || []
151 @items = items || []
152 @items.sort! {|x,y| y.event_datetime <=> x.event_datetime }
152 @items.sort! {|x,y| y.event_datetime <=> x.event_datetime }
153 @items = @items.slice(0, Setting.feeds_limit.to_i)
153 @title = options[:title] || Setting.app_title
154 @title = options[:title] || Setting.app_title
154 render :template => "common/feed.atom.rxml", :layout => false, :content_type => 'application/atom+xml'
155 render :template => "common/feed.atom.rxml", :layout => false, :content_type => 'application/atom+xml'
155 end
156 end
General Comments 0
You need to be logged in to leave comments. Login now