Commit d76d6acaf675a0d04aed14e0273de91c2e82545d
1 parent
df5d2467
Exists in
master
and in
6 other branches
Correção na carga do cache de imagens
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
classesphp/mapa_openlayers.php
| ... | ... | @@ -536,13 +536,13 @@ function carregaCacheImagem($cachedir, $map, $tms, $i3georendermode = 0) |
| 536 | 536 | } else { |
| 537 | 537 | $nome = $cachedir . $tms; |
| 538 | 538 | } |
| 539 | - $nome = $nome . ".png"; | |
| 539 | + $nome = str_replace(".png","",$nome) . ".png"; | |
| 540 | 540 | if (file_exists($nome)) { |
| 541 | 541 | cabecalhoImagem($nome); |
| 542 | 542 | if ($i3georendermode = 0 || $i3georendermode = 1 || empty($i3georendermode)) { |
| 543 | 543 | readfile($nome); |
| 544 | 544 | } else { |
| 545 | - header("X-Sendfile: $nome"); | |
| 545 | + header("X-Sendfile: ".$nome); | |
| 546 | 546 | } |
| 547 | 547 | exit(); |
| 548 | 548 | } | ... | ... |