]> git.openstreetmap.org Git - rails.git/commitdiff
change 'no nodes' response to use API_VERSION in output
authorChristopher Schmidt <crschmidt@crschmidt.net>
Sun, 11 May 2008 21:21:30 +0000 (21:21 +0000)
committerChristopher Schmidt <crschmidt@crschmidt.net>
Sun, 11 May 2008 21:21:30 +0000 (21:21 +0000)
app/controllers/api_controller.rb

index 26cb93a489cbd1f625b79ea727e0e58b78eccabf..6ede9ebe809a8389058fe90c24cd81989e082e37 100644 (file)
@@ -120,7 +120,7 @@ class ApiController < ApplicationController
       return
     end
     if node_ids.length == 0
       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
 
       return
     end