X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b5d0de88eab8b22bedec7fd7cc34552caa1584ab..fb4d003ebee8842ace3807bb1a60b9b36d94723e:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index c34c928ff..78d32e739 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -540,7 +540,7 @@ module OSM def self.legal_text_for_country(country_code) file_name = File.join(RAILS_ROOT, "config", "legales", country_code.to_s + ".yml") - file_name = File.join(RAILS_ROOT, "config", "legales", APP_CONFIG['default_legale'] + ".yml") unless File.exist? file_name + file_name = File.join(RAILS_ROOT, "config", "legales", DEFAULT_LEGALE + ".yml") unless File.exist? file_name YAML::load_file(file_name) end end