Browse Source

remove spaces inside {} of ApplicationController

git-svn-id: http://svn.redmine.org/redmine/trunk@20409 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 3 years ago
parent
commit
745e4152f8
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      app/controllers/application_controller.rb

+ 3
- 3
app/controllers/application_controller.rb View File

@@ -276,8 +276,8 @@ class ApplicationController < ActionController::Base
head(:forbidden)
end
end
format.js { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' }
format.any { head :unauthorized }
format.js {head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"'}
format.any {head :unauthorized}
end
return false
end
@@ -565,7 +565,7 @@ class ApplicationController < ActionController::Base
format.html do
render :template => 'common/error', :layout => use_layout, :status => @status
end
format.any { head @status }
format.any {head @status}
end
end


Loading…
Cancel
Save