]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Fix scroll bar issue on edit pages
[rails.git] / app / controllers / site_controller.rb
index eb8749f6f659da21af7c69252c570728fbd829c0..1757e771a9fc085a5c85c8b8c7906d5ebdf56aad 100644 (file)
@@ -41,12 +41,11 @@ class SiteController < ApplicationController
     editor = preferred_editor
 
     if editor == "remote"
+      require_oauth
       render :action => :index
       return
     end
 
-    @extra_body_class = "site-edit-#{editor}"
-
     if params[:node]
       bbox = Node.find(params[:node]).bbox.to_unscaled
       @lat = bbox.centre_lat