Commit e4f50f8ddc59c1cc5b11cce9dbfadb0acb3639d3
1 parent
c0bd3979
Exists in
master
and in
7 other branches
Corrige o método da classe classe_tema.php que remove o metadata "cache". O méto…
…do mapscript que remove um metadado, derruba o PHP se o metadado não existir. Isso provocava o não funcionamento correto dessa opção
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
classesphp/classe_temas.php
@@ -163,7 +163,7 @@ $lista - lista de processos separados por | | @@ -163,7 +163,7 @@ $lista - lista de processos separados por | | ||
163 | foreach ($lista as $processo) | 163 | foreach ($lista as $processo) |
164 | { | 164 | { |
165 | $this->layer->setprocessing($processo); | 165 | $this->layer->setprocessing($processo); |
166 | - $this->layer->removeMetaData("cache"); | 166 | + $this->layer->setMetaData("cache",""); |
167 | } | 167 | } |
168 | 168 | ||
169 | return("ok"); | 169 | return("ok"); |
@@ -221,7 +221,7 @@ A mudança é feita apenas na representação do layer. | @@ -221,7 +221,7 @@ A mudança é feita apenas na representação do layer. | ||
221 | {$l->set("type",MS_LAYER_LINE);} | 221 | {$l->set("type",MS_LAYER_LINE);} |
222 | if (($l->type < 1) || ($l->type > 2)) | 222 | if (($l->type < 1) || ($l->type > 2)) |
223 | {$retorno = "erro. O tipo desse tema nao pode ser alterado";} | 223 | {$retorno = "erro. O tipo desse tema nao pode ser alterado";} |
224 | - $l->removeMetaData("cache"); | 224 | + $this->layer->setMetaData("cache",""); |
225 | } | 225 | } |
226 | return $retorno; | 226 | return $retorno; |
227 | } | 227 | } |
@@ -462,7 +462,7 @@ $testa - Testa o filtro e retorna uma imagem. | @@ -462,7 +462,7 @@ $testa - Testa o filtro e retorna uma imagem. | ||
462 | $img = $this->mapa->prepareimage(); | 462 | $img = $this->mapa->prepareimage(); |
463 | if ($this->layer->draw($img) == 0) | 463 | if ($this->layer->draw($img) == 0) |
464 | { | 464 | { |
465 | - $this->layer->removeMetaData("cache"); | 465 | + $this->layer->setMetaData("cache",""); |
466 | return ("ok"); | 466 | return ("ok"); |
467 | } | 467 | } |
468 | else | 468 | else |
@@ -1024,7 +1024,7 @@ Altera o valor do elemento DATA | @@ -1024,7 +1024,7 @@ Altera o valor do elemento DATA | ||
1024 | if(strtolower($metadata) != "nao") | 1024 | if(strtolower($metadata) != "nao") |
1025 | { | 1025 | { |
1026 | $this->layer->set("data",$data); | 1026 | $this->layer->set("data",$data); |
1027 | - $this->layer->removeMetaData("cache"); | 1027 | + $this->layer->setMetaData("cache",""); |
1028 | return $data; | 1028 | return $data; |
1029 | } | 1029 | } |
1030 | else | 1030 | else |