[Mapbender-commits] r8404 - branches/2.7/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jul 3 00:22:14 PDT 2012
Author: tbaschetti
Date: 2012-07-03 00:22:14 -0700 (Tue, 03 Jul 2012)
New Revision: 8404
Modified:
branches/2.7/http/classes/
branches/2.7/http/classes/class_locale.php
branches/2.7/http/classes/class_metadata.php
branches/2.7/http/classes/class_metadata_new.php
Log:
substituded split() with explode (split is deprecated in PHP >= 5.3)
Property changes on: branches/2.7/http/classes
___________________________________________________________________
Added: svn:ignore
+ .class_locale.php.swp
.class_metadata_new.php.swp
.class_metadata.php.swp
Modified: branches/2.7/http/classes/class_locale.php
===================================================================
--- branches/2.7/http/classes/class_locale.php 2012-07-02 14:41:43 UTC (rev 8403)
+++ branches/2.7/http/classes/class_locale.php 2012-07-03 07:22:14 UTC (rev 8404)
@@ -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: branches/2.7/http/classes/class_metadata.php
===================================================================
--- branches/2.7/http/classes/class_metadata.php 2012-07-02 14:41:43 UTC (rev 8403)
+++ branches/2.7/http/classes/class_metadata.php 2012-07-03 07:22:14 UTC (rev 8404)
@@ -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: branches/2.7/http/classes/class_metadata_new.php
===================================================================
--- branches/2.7/http/classes/class_metadata_new.php 2012-07-02 14:41:43 UTC (rev 8403)
+++ branches/2.7/http/classes/class_metadata_new.php 2012-07-03 07:22:14 UTC (rev 8404)
@@ -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