]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Doing a resync from mainline 8633:10895. There was one simple to resolve conflict...
[rails.git] / app / controllers / api_controller.rb
index 6b36b41ae947e25fdfe035f5377e2cc652e0d3a5..2f040a92bade1c64892bc6806c3d400f18469eff 100644 (file)
@@ -120,7 +120,7 @@ class ApiController < ApplicationController
       return
     end
     if node_ids.length == 0
-      render :text => "<osm version='0.5'></osm>", :content_type => "text/xml"
+      render :text => "<osm version='#{API_VERSION}'></osm>", :content_type => "text/xml"
       return
     end
 
@@ -254,8 +254,8 @@ class ApiController < ApplicationController
 
     api = XML::Node.new 'api'
     version = XML::Node.new 'version'
-    version['minimum'] = '0.5';
-    version['maximum'] = '0.5';
+    version['minimum'] = "#{API_VERSION}";
+    version['maximum'] = "#{API_VERSION}";
     api << version
     area = XML::Node.new 'area'
     area['maximum'] = MAX_REQUEST_AREA.to_s;