X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6600221fe3a72f4c5ead056b829b666ed00841a0..c24b0e93997bcd6bcad475d9ba0adfe86fa01ea6:/app/controllers/traces_controller.rb diff --git a/app/controllers/traces_controller.rb b/app/controllers/traces_controller.rb index 3091f4360..334aa2aa6 100644 --- a/app/controllers/traces_controller.rb +++ b/app/controllers/traces_controller.rb @@ -323,11 +323,11 @@ class TracesController < ApplicationController end def offline_warning - flash.now[:warning] = t "traces.offline_warning.message" if STATUS == :gpx_offline + flash.now[:warning] = t "traces.offline_warning.message" if Settings.status == "gpx_offline" end def offline_redirect - redirect_to :action => :offline if STATUS == :gpx_offline + redirect_to :action => :offline if Settings.status == "gpx_offline" end def default_visibility