[Mapbender-commits] r8405 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jul 3 00:22:39 PDT 2012
Author: tbaschetti
Date: 2012-07-03 00:22:39 -0700 (Tue, 03 Jul 2012)
New Revision: 8405
Modified:
trunk/mapbender/http/classes/class_locale.php
trunk/mapbender/http/classes/class_metadata.php
trunk/mapbender/http/classes/class_metadata_new.php
Log:
substituded split() with explode (split is deprecated in PHP >= 5.3)
Modified: trunk/mapbender/http/classes/class_locale.php
===================================================================
--- trunk/mapbender/http/classes/class_locale.php 2012-07-03 07:22:14 UTC (rev 8404)
+++ trunk/mapbender/http/classes/class_locale.php 2012-07-03 07:22:39 UTC (rev 8405)
@@ -257,7 +257,7 @@
function setBrowserLanguages () {
$this->browserLanguages = array();
- $bLangs = split(',', $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
+ $bLangs = explode(',', $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
foreach ($bLangs as $lang) {
if (strpos($lang, ';') === false)
array_push($this->browserLanguages, $lang);
Modified: trunk/mapbender/http/classes/class_metadata.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata.php 2012-07-03 07:22:14 UTC (rev 8404)
+++ trunk/mapbender/http/classes/class_metadata.php 2012-07-03 07:22:39 UTC (rev 8405)
@@ -295,7 +295,7 @@
$asstr = array();
if ($this->searchtext!="false"){
- $asstr = split(" ",$this->searchtext);
+ $asstr = explode(" ",$this->searchtext);
}
@@ -790,7 +790,7 @@
$asstr = array();
if ($this->searchtext!="false"){
- $asstr = split(" ",$this->searchtext);
+ $asstr = explode(" ",$this->searchtext);
}
for ($index = 0; $index < count($asstr); $index++) {
Modified: trunk/mapbender/http/classes/class_metadata_new.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata_new.php 2012-07-03 07:22:14 UTC (rev 8404)
+++ trunk/mapbender/http/classes/class_metadata_new.php 2012-07-03 07:22:39 UTC (rev 8405)
@@ -1303,7 +1303,7 @@
$asstr = array();
if ($this->searchText != "false"){
- $asstr = split(",",$this->searchText);
+ $asstr = explode(",",$this->searchText);
//delete left and right whitespaces
for ($i=0; $i<count($asstr);$i++) {
$asstr[$i]=ltrim($asstr[$i]);
More information about the Mapbender_commits
mailing list