Commit 4b4deaa5f98eb0dcbc5d292a7bebae66ff9990f4

Authored by Edmar Moretti
1 parent bea0d669

Inclusão de wms_version default como 1.1.1 quando for enviado como vazio

Showing 2 changed files with 4 additions and 2 deletions   Show diff stats
classesphp/classe_mapa.php
@@ -1568,7 +1568,9 @@ class Mapa @@ -1568,7 +1568,9 @@ class Mapa
1568 */ 1568 */
1569 function adicionatemawms($tema,$servico,$nome,$proj,$formato,$locaplic,$tipo="",$versao,$nomecamada,$dir_tmp,$imgdir,$imgurl,$tiporep,$suportasld,$formatosinfo="text/plain",$time="",$tile=0) 1569 function adicionatemawms($tema,$servico,$nome,$proj,$formato,$locaplic,$tipo="",$versao,$nomecamada,$dir_tmp,$imgdir,$imgurl,$tiporep,$suportasld,$formatosinfo="text/plain",$time="",$tile=0)
1570 { 1570 {
1571 - //echo $tile;exit; 1571 + if($versao == ""){
  1572 + $versao = "1.1.1";
  1573 + }
1572 if(file_exists($this->locaplic."/classesphp/wmswfs.php")) 1574 if(file_exists($this->locaplic."/classesphp/wmswfs.php"))
1573 include_once($this->locaplic."/classesphp/wmswfs.php"); 1575 include_once($this->locaplic."/classesphp/wmswfs.php");
1574 else 1576 else
@@ -254,7 +254,7 @@ $listaepsg = $req->getValueByName("SRS")." EPSG:4618 EPSG:4291 EPSG:4326 EPSG:22 @@ -254,7 +254,7 @@ $listaepsg = $req->getValueByName("SRS")." EPSG:4618 EPSG:4291 EPSG:4326 EPSG:22
254 if(isset($version) && !isset($VERSION)){ 254 if(isset($version) && !isset($VERSION)){
255 $VERSION = $version; 255 $VERSION = $version;
256 } 256 }
257 -if(!isset($VERSION)){ 257 +if(!isset($VERSION) || $VERSION == ""){
258 $req->setParameter("VeRsIoN","1.1.1"); 258 $req->setParameter("VeRsIoN","1.1.1");
259 } 259 }
260 // 260 //