mirror of
https://github.com/redmine/redmine.git
synced 2026-01-31 11:50:13 +01:00
Fix "DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated: common/error_messages.api" (#29914, #34985).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20895 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -744,7 +744,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
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
|
||||
|
||||
@@ -286,7 +286,7 @@ class RepositoriesController < ApplicationController
|
||||
@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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user