X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/95d899786a1bbabacc0cd12ef1c4814118d9d0de..4dfe43c956833e11e1ae0169b6312577b1d6a80c:/app/controllers/site_controller.rb?ds=sidebyside 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