Patch by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@20897
e93f8b46-1217-0410-a6f0-
8f06a7374b81
def render_api_errors(*messages)
@error_messages = messages.flatten
- render :template => 'common/error_messages.api', :status => :unprocessable_entity, :layout => nil
+ render :template => 'common/error_messages', :format => [:api], :status => :unprocessable_entity, :layout => nil
end
# Overrides #_include_layout? so that #render with no arguments
@changeset = @repository.find_changeset_by_name(@rev)
@changeset_to = @rev_to ? @repository.find_changeset_by_name(@rev_to) : nil
@diff_format_revisions = @repository.diff_format_revisions(@changeset, @changeset_to)
- render :diff, :formats => :html, :layout => 'base.html.erb'
+ render :diff, :formats => :html, :layout => 'base'
end
end