[fusion-commits] r2208 - sandbox/jxlib-3.0/layers/MapServer/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Aug 26 09:49:01 EDT 2010


Author: madair
Date: 2010-08-26 13:49:01 +0000 (Thu, 26 Aug 2010)
New Revision: 2208

Modified:
   sandbox/jxlib-3.0/layers/MapServer/php/Selection.php
Log:
replacing deprecated split() method with explode()

Modified: sandbox/jxlib-3.0/layers/MapServer/php/Selection.php
===================================================================
--- sandbox/jxlib-3.0/layers/MapServer/php/Selection.php	2010-08-25 18:38:26 UTC (rev 2207)
+++ sandbox/jxlib-3.0/layers/MapServer/php/Selection.php	2010-08-26 13:49:01 UTC (rev 2208)
@@ -59,14 +59,14 @@
         $aLayers = array();
         if (isset($_REQUEST['layers']) && $_REQUEST['layers'] !='')
         {
-            $aLayers = split(",", $_REQUEST['layers']);
+            $aLayers = explode(",", $_REQUEST['layers']);
             $bAllLayers = 0;
         }
 
         $aStartCount = array();
         if (isset($_REQUEST['startcount']) && $_REQUEST['startcount'] !='')
         {
-            $aStartCount =  split(",", $_REQUEST['startcount']);
+            $aStartCount =  explode(",", $_REQUEST['startcount']);
         }
 
         /* if number of layers and number of startcount should be the same */
@@ -109,7 +109,7 @@
                         {
                             if ($aLayers[$j] == $layerName)
                             {
-                                $aIndiceCount = split(':', $aStartCount[$j]);
+                                $aIndiceCount = explode(':', $aStartCount[$j]);
                                 if (count($aIndiceCount) == 2)
                                 {
                                     $start = $aIndiceCount[0];
@@ -187,7 +187,7 @@
     global $properties;
     foreach($properties->$layername->metadatanames as $key=>$value){
         if($value == "bbox"){
-            $aBBox = split(",",$properties->$layername->metadata[0][$key]);
+            $aBBox = explode(",",$properties->$layername->metadata[0][$key]);
             $oBBox->minx = $aBBox[0];
             $oBBox->miny = $aBBox[1];
             $oBBox->maxx = $aBBox[2];



More information about the fusion-commits mailing list