X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cc9a9ee3995963df989f6bb1d07e827afa9750eb..d0c63b6d5dbf6580c333e1d638d19fc17fd2a351:/app/controllers/amf_controller.rb diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 64abdb257..687262e74 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -232,12 +232,6 @@ class AmfController < ApplicationController help = localised["help_html"] localised.delete("help_html") - # Populate icon names - POTLATCH_PRESETS[10].each { |id| - POTLATCH_PRESETS[11][id] = localised["preset_icon_#{id}"] - localised.delete("preset_icon_#{id}") - } - return POTLATCH_PRESETS+[localised,help] end @@ -249,7 +243,7 @@ class AmfController < ApplicationController en = YAML::load(File.open("#{RAILS_ROOT}/config/potlatch/locales/en.yml"))["en"] if lang == 'en' - return [real_lang, en] + return [loaded_lang, en] else # Use English as a fallback begin