From c0cf4a99153de55116f38d45742353cb0b63bc93 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 17 Jul 2008 18:41:01 +0000 Subject: [PATCH] Correção na verificação da substituição de conexão --- testamapfile.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/testamapfile.php b/testamapfile.php index 3ed93c7..edec934 100644 --- a/testamapfile.php +++ b/testamapfile.php @@ -93,7 +93,7 @@ if (isset($map) && $map != "") } function verifica($map) { - global $tipo,$locaplic; + global $tipo,$locaplic,$postgis_mapa; if ($tipo == "mini" && file_exists('temas/miniaturas/'.$map.".mini.png")) { Header("Content-type: image/png"); @@ -137,6 +137,13 @@ function verifica($map) { $layern = $nmapa->getLayerByName($teman); $layern->set("status",MS_DEFAULT); + if ($layern->connectiontype == MS_POSTGIS) + { + if ($layern->connection == " ") + { + $layern->set("connection",$postgis_mapa); + } + } autoClasses(&$layern,$nmapa); ms_newLayerObj($mapa, $layern); if ($layern->data == "") -- libgit2 0.21.2