X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2cbcabb3f6992904903a72dfbcef624bd391a314..dffc16e9cc7bc7eb59ff590c7d7413ca930b7ebc:/app/views/site/edit.rhtml diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index 16c2ef3f2..ab6d70575 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -26,15 +26,15 @@ <% if params['mlon'] and params['mlat'] %> <% lon = h(params['mlon']) %> <% lat = h(params['mlat']) %> -<% zoom = h(params['zoom']) || '12' %> +<% zoom = h(params['zoom'] || '12') %> <% elsif @user and params['lon'].nil? and params['lat'].nil? %> <% lon = @user.home_lon %> <% lat = @user.home_lat %> <% zoom = '12' %> <%else%> -<% lon = h(params['lon']) || '-0.1' %> -<% lat = h(params['lat']) || '51.5' %> -<% zoom = h(params['zoom']) || '12' %> +<% lon = h(params['lon'] || '-0.1') %> +<% lat = h(params['lat'] || '51.5') %> +<% zoom = h(params['zoom'] || '12') %> <% end %>