X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/da4c9cdfd9076e7a9cf9c623bf3010ac19a1148b..1f2545ea903f8f2ce2f41b0fa90f204da73f05bd:/app/views/site/_potlatch2.html.erb diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index e27164fa8..c91a01984 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) || "en" %>