X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fd898f2e5769ae58b386cd09f01de86b3eda9622..5f7855fa4d07fbee05de4f67d0aa370c8131ff2f:/app/views/site/_potlatch2.html.erb diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index 6073e0adf..240bceacc 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -4,11 +4,17 @@ <%= javascript_include_tag 'swfobject.js' %> +<% if defined? POTLATCH2_KEY %> <% token = @user.access_token(POTLATCH2_KEY) %> +<% else%> + +<% end %> + +<% locale = request.compatible_language_from(Potlatch2::LOCALES.keys) %>