Skip to content
Snippets Groups Projects
Commit 3651546a authored by hutch's avatar hutch Committed by haiiro.simeji
Browse files

Issue #1231848: drupal_urlencode() is no longer defined in 7.x

parent abf2ecfb
No related branches found
No related tags found
No related merge requests found
...@@ -1140,7 +1140,7 @@ function gmap_decimal($num) { ...@@ -1140,7 +1140,7 @@ function gmap_decimal($num) {
*/ */
function gmap_geocode($address, $tld = 'com') { function gmap_geocode($address, $tld = 'com') {
$key = gmap_get_key(); $key = gmap_get_key();
$data = drupal_http_request('http://maps.google.' . $tld . '/maps/geo?q=' . drupal_urlencode($address) . '&output=csv&key=' . $key); $data = drupal_http_request('http://maps.google.' . $tld . '/maps/geo?q=' . urlencode($address) . '&output=csv&key=' . $key);
if ($data->code == 200) { if ($data->code == 200) {
$r = explode(',', $data->data); $r = explode(',', $data->data);
return array( return array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment