X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e31376e28da8f656e33508cc899da465b63673c5..df495292376ecc893197bba7093bf2e558aad074:/app/views/site/_potlatch2.html.erb diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index 9e01eef30..eb2a59376 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -6,8 +6,8 @@ <% data[:lat] = @lat if @lat -%> <% data[:lon] = @lon if @lon -%> <% data[:zoom] = @zoom if @zoom -%> - <% if defined? POTLATCH2_KEY %> - <% token = current_user.access_token(POTLATCH2_KEY) %> + <% if Settings.key?(:potlatch2_key) %> + <% token = current_user.access_token(Settings.potlatch2_key) %> <% data[:token] = token.token -%> <% data[:token_secret] = token.secret -%> <% data[:consumer_key] = token.client_application.key -%>