Commit 5526db3c01f04696534fe9abd9ce761342121e7c
1 parent
ebb92461
Exists in
master
and in
7 other branches
Incluida critica na opção de geração de um novo tema a partir da seleção para pe…
…rmitir o download apenas quando o tema original permitir o download
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
classesphp/classe_selecao.php
| ... | ... | @@ -496,7 +496,10 @@ $dir_tmp - localização do diretório temporário |
| 496 | 496 | $novolayer = criaLayer($this->mapa,$this->layer->type,MS_DEFAULT,"Seleção de ".(pegaNome($this->layer))." (".$this->nome.")",$metaClasse="SIM"); |
| 497 | 497 | $novolayer->set("data",$nomeshp.".shp"); |
| 498 | 498 | $novolayer->set("name",basename($nomeshp)); |
| 499 | - $novolayer->setmetadata("DOWNLOAD","sim"); | |
| 499 | + $down = "nao"; | |
| 500 | + $down = $this->layer->getmetadata("download"); | |
| 501 | + if ($down == ""){$down = "nao";} | |
| 502 | + $novolayer->setmetadata("DOWNLOAD",$down); | |
| 500 | 503 | $tipo = $this->layer->type; |
| 501 | 504 | if ($this->layer->getmetadata("TABELA") != '') |
| 502 | 505 | {$novolayer->setmetadata("TABELA","NAO");} | ... | ... |