summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-30 08:33:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-30 08:33:04 +0000
commitfaf1f1e812b385dcf88591eac6fc898f86947c75 (patch)
treedec4b7c5a9736ce4eecc4a4da6b3fae592492c70
parentcd64338a7f0cf9a648365085851bb8cb60b68c56 (diff)
downloadredmine-faf1f1e812b385dcf88591eac6fc898f86947c75.tar.gz
redmine-faf1f1e812b385dcf88591eac6fc898f86947c75.zip
Fixed: Feed content limit setting has no effect (closes #954).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1310 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/application.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb
index 98cb4a827..abf621641 100644
--- a/app/controllers/application.rb
+++ b/app/controllers/application.rb
@@ -150,6 +150,7 @@ class ApplicationController < ActionController::Base
def render_feed(items, options={})
@items = items || []
@items.sort! {|x,y| y.event_datetime <=> x.event_datetime }
+ @items = @items.slice(0, Setting.feeds_limit.to_i)
@title = options[:title] || Setting.app_title
render :template => "common/feed.atom.rxml", :layout => false, :content_type => 'application/atom+xml'
end