X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d73a5d4bc015d304e7b8863a0e927ac0b134e07b..e7ab3de654be6d0d1877eaf031baffa66bc1ed24:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index 1d0b11d43..892d41a2a 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -110,15 +110,15 @@ class Trace < ActiveRecord::Base end def large_picture_name - "#{GPX_IMAGE_DIR}/#{id}.gif" + "#{Settings.gpx_image_dir}/#{id}.gif" end def icon_picture_name - "#{GPX_IMAGE_DIR}/#{id}_icon.gif" + "#{Settings.gpx_image_dir}/#{id}_icon.gif" end def trace_name - "#{GPX_TRACE_DIR}/#{id}.gpx" + "#{Settings.gpx_trace_dir}/#{id}.gpx" end def mime_type @@ -280,7 +280,7 @@ class Trace < ActiveRecord::Base def import logger.info("GPX Import importing #{name} (#{id}) from #{user.email}") - gpx = GPX::File.new(xml_file) + gpx = ::GPX::File.new(xml_file) f_lat = 0 f_lon = 0