X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/95d899786a1bbabacc0cd12ef1c4814118d9d0de..6de8c2e6b30485683a9d3aa3e21c4b256fe399bd:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 36f57d6c2..cf4465b9c 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -1,5 +1,6 @@ class SiteController < ApplicationController layout 'site', :except => [:key, :permalink] + layout false, :only => [:key, :permalink] before_filter :authorize_web before_filter :set_locale @@ -80,4 +81,8 @@ class SiteController < ApplicationController @zoom = '17' if @zoom.nil? end end + + def copyright + @locale = params[:copyright_locale] || I18n.locale + end end