[Mapbender-commits] r1603 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Aug 6 04:34:05 EDT 2007


Author: christoph
Date: 2007-08-06 04:34:05 -0400 (Mon, 06 Aug 2007)
New Revision: 1603

Modified:
   trunk/mapbender/http/php/mod_editWMS_Metadata.php
Log:
replaced old string functions by multibyte string function

Modified: trunk/mapbender/http/php/mod_editWMS_Metadata.php
===================================================================
--- trunk/mapbender/http/php/mod_editWMS_Metadata.php	2007-08-06 08:31:21 UTC (rev 1602)
+++ trunk/mapbender/http/php/mod_editWMS_Metadata.php	2007-08-06 08:34:05 UTC (rev 1603)
@@ -77,15 +77,15 @@
 function guessTimestamp($timestr) 
 {
 	
-     if (strstr($timestr, '.'))
+     if (mb_strpos($timestr, '.'))
      {
         list($day, $month, $year) = explode(".", $timestr);
      }
-     elseif (strstr($timestr, '/'))
+     elseif (mb_strpos($timestr, '/'))
      {
         list($month, $day, $year) = explode("/", $timestr);
      }
-     elseif (strstr($timestr, '-'))
+     elseif (mb_strpos($timestr, '-'))
      {
         list($year, $month, $day) = explode("-", $timestr);
      }
@@ -132,7 +132,7 @@
         if(preg_match("/___/", $key))
         {
             $myKey = explode("___", $key);
-            $layer_id = str_replace("L_","",$myKey[0]);
+            $layer_id = preg_replace("L_","",$myKey[0]);
             if($myKey[1]=="layer_abstract")
             {
                 $layer_sql = "UPDATE layer SET layer_abstract = '$val' " .



More information about the Mapbender_commits mailing list