Passing the format in the template name is deprecated.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10561 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-10-04 18:15:05 +00:00
parent cbe8226759
commit 5411f93a9a
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ class ApplicationController < ActionController::Base
@items.sort! {|x,y| y.event_datetime <=> x.event_datetime } @items.sort! {|x,y| y.event_datetime <=> x.event_datetime }
@items = @items.slice(0, Setting.feeds_limit.to_i) @items = @items.slice(0, Setting.feeds_limit.to_i)
@title = options[:title] || Setting.app_title @title = options[:title] || Setting.app_title
render :template => "common/feed.atom", :layout => false, render :template => "common/feed", :formats => [:atom], :layout => false,
:content_type => 'application/atom+xml' :content_type => 'application/atom+xml'
end end