projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add UFC_Mentor_*
[platal.git]
/
include
/
geocoding.inc.php
diff --git
a/include/geocoding.inc.php
b/include/geocoding.inc.php
index
cb27635
..
2e99434
100644
(file)
--- a/
include/geocoding.inc.php
+++ b/
include/geocoding.inc.php
@@
-337,7
+337,12
@@
class GMapsGeocoder extends Geocoder {
$address['text'] = $address['geoloc'];
$address['postalText'] = $address['geocodedPostalText'];
unset($address['geoloc'], $address['geocodedPostalText']);
$address['text'] = $address['geoloc'];
$address['postalText'] = $address['geocodedPostalText'];
unset($address['geoloc'], $address['geocodedPostalText']);
+ } else {
+ $address['geoloc'] = str_replace("\n", "\r\n", $address['geoloc']);
+ $address['geocodedPostalText'] = str_replace("\n", "\r\n", $address['geocodedPostalText']);
}
}
+ $address['text'] = str_replace("\n", "\r\n", $address['text']);
+ $address['postalText'] = str_replace("\n", "\r\n", $address['postalText']);
}
// Returns the address formated for postal use.
}
// Returns the address formated for postal use.