X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/555a821c3e1b79093b63b96e981c4766cf43baa9..3b237dc3dabda181ed68dc587b1befc678a03706:/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 -%>