Skip to content

Commit

Permalink
fix api key missing due to legacy bundle code
Browse files Browse the repository at this point in the history
  • Loading branch information
ericges committed Oct 15, 2024
1 parent 8bdf498 commit d419151
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/Haste/Dca/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ public static function findFuzzyAddressOnGoogleMaps($address)
$apiKey = Config::get('dlh_googlemaps_apikey');
$url = Url::addQueryString('key='.$apiKey, $url);
}
elseif (!empty($apiKey = $GLOBALS['TL_CONFIG']['googlemaps_apiKey'] ?? null))
{
$url .= '&key=' . $apiKey;
}

$strResult = Curl::request($url);

Expand Down

0 comments on commit d419151

Please sign in to comment.