fixing href regression introduced with r11978. r=bartvde (see #3351)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -305,15 +305,22 @@ OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(
|
||||
"Get": function(node, obj) {
|
||||
obj.get = {};
|
||||
this.readChildNodes(node, obj.get);
|
||||
// backwards compatibility
|
||||
if (!obj.href) {
|
||||
obj.href = obj.get.href;
|
||||
}
|
||||
},
|
||||
"Post": function(node, obj) {
|
||||
obj.post = {};
|
||||
this.readChildNodes(node, obj.post);
|
||||
// backwards compatibility
|
||||
if (!obj.href) {
|
||||
obj.href = obj.get.href;
|
||||
}
|
||||
},
|
||||
"GetMap": function(node, obj) {
|
||||
obj.getmap = {formats: []};
|
||||
this.readChildNodes(node, obj.getmap);
|
||||
obj.getmap.href = obj.getmap.get.href || obj.getmap.post.href; // backwards compatibility
|
||||
},
|
||||
"GetFeatureInfo": function(node, obj) {
|
||||
obj.getfeatureinfo = {formats: []};
|
||||
|
||||
Reference in New Issue
Block a user