Index: trunk/extensions/Maps/Geocoders/Maps_GoogleGeocoder.php |
— | — | @@ -34,8 +34,8 @@ |
35 | 35 | $result = self::GetResponse($requestURL); |
36 | 36 | |
37 | 37 | //Check the Google Geocoder API Response code to ensure success |
38 | | - if (substr($result, 0, 3) == "200") { |
39 | | - $result = explode(",", $result); |
| 38 | + if (substr($result, 0, 3) == '200') { |
| 39 | + $result = explode(',', $result); |
40 | 40 | |
41 | 41 | //$precision = $result[1]; |
42 | 42 | $latitude = $result[2]; |
Index: trunk/extensions/Maps/Geocoders/Maps_Geocoder.php |
— | — | @@ -74,8 +74,7 @@ |
75 | 75 | $wgAutoloadClasses[$egMapsAvailableGeoServices[$service]['class']] = $file; |
76 | 76 | |
77 | 77 | // Call the geocode function in the spesific geocoder class. |
78 | | - $phpAtLeast523 = MapsUtils::phpVersionIsEqualOrBigger('5.2.3'); |
79 | | - $coordinates = call_user_func(array($egMapsAvailableGeoServices[$service]['class'], 'geocode'), $phpAtLeast523 ? $address : array($address)); |
| 78 | + $coordinates = call_user_func(array($egMapsAvailableGeoServices[$service]['class'], 'geocode'), $address); |
80 | 79 | |
81 | 80 | // Add the obtained coordinates to the cache when there is a result and the cache is enabled. |
82 | 81 | if (self::$mEnableCache && $coordinates) { |
Index: trunk/extensions/Maps/Geocoders/Maps_YahooGeocoder.php |
— | — | @@ -32,8 +32,8 @@ |
33 | 33 | |
34 | 34 | $result = self::GetResponse($requestURL); |
35 | 35 | |
36 | | - $lon = self::getXmlElementValue($result, "longitude"); |
37 | | - $lat = self::getXmlElementValue($result, "latitude"); |
| 36 | + $lon = self::getXmlElementValue($result, 'longitude'); |
| 37 | + $lat = self::getXmlElementValue($result, 'latitude'); |
38 | 38 | |
39 | 39 | // In case one of the values is not found, return false |
40 | 40 | if (!$lon || !$lat) return false; |