Commit fbf1ef8d authored by Gareth Alexander's avatar Gareth Alexander
Browse files

Issue #2852988 Remove the sensor parameter from the script element

parent a6090656
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1212,7 +1212,7 @@ function gmap_decimal($num) {
 * @see http://drupal.org/node/1940474
 */
function gmap_geocode($address, $tld = 'com') {
  $data = drupal_http_request(gmap_views_protocol() . '://maps.googleapis.' . $tld . '/maps/api/geocode/json?address=' . urlencode($address) . '&sensor=false');
  $data = drupal_http_request(gmap_views_protocol() . '://maps.googleapis.' . $tld . '/maps/api/geocode/json?address=' . urlencode($address));
  if ($data->code == 200) {
    $data_decoded = json_decode($data->data);
    if ($data_decoded->status == 'ZERO_RESULTS' || $data_decoded->status == 'OVER_QUERY_LIMIT') {
+0 −1
Original line number Diff line number Diff line
@@ -103,7 +103,6 @@ class GmapDefaults {
    $query = array(
      'v' => variable_get('gmap_api_version', GMAP_API_VERSION),
      'language' => $langcode,
      'sensor' => 'false',
      'libraries' => implode(',', array_merge(variable_get('gmap_api_libraries', array()), gmap_module_invoke('libraries', $m))),
    );
    if ($key = gmap_get_key()) {
+0 −1
Original line number Diff line number Diff line
@@ -109,7 +109,6 @@ function legacy__gmap_base_js() {
  $query = array(
    'v' => variable_get('gmap_api_version', GMAP_API_VERSION),
    'language' => $langcode,
    'sensor' => 'false',
    'libraries' => implode(',', array_merge(variable_get('gmap_api_libraries', array()), legacy_gmap_module_invoke('libraries', $m))),
  );
  if ($key = legacy_gmap_get_key()) {