]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
erblint: Add or remove curly braces around hash parameters as required
[rails.git] / app / controllers / site_controller.rb
index 5833a1e045b01cd55ab69a8e746d040bd090ae72..471e9f3c5636d75d54765fc2854919e9a4da11e1 100644 (file)
@@ -12,7 +12,7 @@ class SiteController < ApplicationController
   authorize_resource :class => false
 
   def index
-    session[:location] ||= OSM.ip_location(request.env["REMOTE_ADDR"]) unless STATUS == :database_readonly || STATUS == :database_offline
+    session[:location] ||= OSM.ip_location(request.env["REMOTE_ADDR"]) unless Settings.status == "database_readonly" || Settings.status == "database_offline"
   end
 
   def permalink