[fusion-commits] r1705 - trunk/layers/MapServer/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Dec 4 10:42:38 EST 2008


Author: pdeschamps
Date: 2008-12-04 10:42:38 -0500 (Thu, 04 Dec 2008)
New Revision: 1705

Modified:
   trunk/layers/MapServer/php/LoadMap.php
Log:
fixed issue with Layer MS_DEFAULT referenes bug#39



Modified: trunk/layers/MapServer/php/LoadMap.php
===================================================================
--- trunk/layers/MapServer/php/LoadMap.php	2008-12-04 15:42:02 UTC (rev 1704)
+++ trunk/layers/MapServer/php/LoadMap.php	2008-12-04 15:42:38 UTC (rev 1705)
@@ -176,6 +176,12 @@
         $layer=$oMap->getLayer($i);
         $layerObj = NULL;
 
+        /* Status Default - If a layer is status Default trac it in layerObj */
+        if($layer->status == MS_DEFAULT)
+            $layerObj->statusdefault = true;
+         else
+            $layerObj->statusdefault = false;
+
         /* rename layes names with invalid characters */
         $layer->set("name",replaceInvalidLayerName($layer->name));
 



More information about the fusion-commits mailing list