Commit 7ae308f2bf97c567f57e28f92a0ece3cd1adfa6b
1 parent
cb952183
Exists in
master
Correção no uso do cache de imagens
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
classesphp/mapa_openlayers.php
... | ... | @@ -528,7 +528,7 @@ function carregaCacheImagem($cachedir,$map,$tms,$i3georendermode=0){ |
528 | 528 | else{ |
529 | 529 | $nome = $cachedir.$tms; |
530 | 530 | } |
531 | - $nome = $nome.".png"; | |
531 | + $nome = str_replace(".png","",$nome) . ".png"; | |
532 | 532 | if(file_exists($nome)){ |
533 | 533 | if($i3georendermode = 0 || $i3georendermode = 1 || empty($i3georendermode)){ |
534 | 534 | header('Content-Length: '.filesize($nome)); | ... | ... |