X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a373f2ab8a1235def98ba8f4129461f1ae339b6e..a12b0878bc338cd5ec3c315c14148b1ea07b362a:/app/views/site/_potlatch2.html.erb diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index 57a45f2ab..c91a01984 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -4,17 +4,23 @@ <%= 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" %>