Commit eeb7a2a97a6f8fdfe51a3ad59c818ac8d8af4ce2

Authored by Edmar Moretti
1 parent 73f29bbc

Correção na geração dos links para download. Ticket #218

Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
classesphp/funcoes_gerais.php
... ... @@ -1827,15 +1827,17 @@ function downloadTema($map_file,$tema,$locaplic,$dir_tmp)
1827 1827 copy($arq[0].".shx",$nomeshp.".shx");
1828 1828 copy($arq[0].".dbf",$nomeshp.".dbf");
1829 1829 }
  1830 + $resultado[] = basename($dir_tmp)."/".$novonomelayer.".shp";
  1831 + $resultado[] = basename($dir_tmp)."/".$novonomelayer.".dbf";
  1832 + $resultado[] = basename($dir_tmp)."/".$novonomelayer.".shx";
1830 1833 }
1831 1834 else
1832 1835 {
1833   - $restemp = criaSHP($tema,$map_file,$locaplic,$dir_tmp,FALSE);
1834   - $novonomelayer = str_replace($radtmp,"",$restemp);
  1836 + $nomeshp = criaSHP($tema,$map_file,$locaplic,$dir_tmp,FALSE);
  1837 + $resultado[] = str_replace($radtmp."/","",$nomeshp).".shp";
  1838 + $resultado[] = str_replace($radtmp."/","",$nomeshp).".shx";
  1839 + $resultado[] = str_replace($radtmp."/","",$nomeshp).".dbf";
1835 1840 }
1836   - $resultado[] = basename($dir_tmp)."/".$novonomelayer.".shp";
1837   - $resultado[] = basename($dir_tmp)."/".$novonomelayer.".dbf";
1838   - $resultado[] = basename($dir_tmp)."/".$novonomelayer.".shx";
1839 1841 }
1840 1842 }
1841 1843 }
... ...