From cca11a24a66d62323df61ed0120d2c92e1099322 Mon Sep 17 00:00:00 2001 From: Eli Van Zoeren Date: Wed, 19 Oct 2016 09:09:37 -0400 Subject: [PATCH] Don't lowercase the Google API key --- changelog.json | 21 ++++++++++++--------- vzaddress/VzAddressPlugin.php | 2 +- vzaddress/models/VzAddress_AddressModel.php | 2 +- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/changelog.json b/changelog.json index 568ef51..6d660ff 100644 --- a/changelog.json +++ b/changelog.json @@ -1,4 +1,12 @@ [ + { + "version": "1.0.6", + "downloadUrl": "https://github.com/elivz/VzAddress-Craft/archive/1.0.6.zip", + "date": "2016-10-19T12:00:00+00:00", + "notes": [ + "[Fixed] Leave API key in original case." + ] + }, { "version": "1.0.5", "downloadUrl": "https://github.com/elivz/VzAddress-Craft/archive/1.0.5.zip", @@ -38,16 +46,11 @@ ] }, { - "version": "1.0.3", - "downloadUrl": "https://github.com/elivz/VzAddress-Craft/archive/1.0.3.zip", - "date": "2016-03-29T23:00:00+0000", + "version": "1.0.0", + "downloadUrl": "", + "date": "2014-12-08T12:00:00+0000", "notes": [ - "**Now requires Craft 2.5 or higher.**", - "[Added] Plugin icon for Craft 2.5.", - "[Added] Can now use Address fields as a column in element indexes.", - "[Improved] Better custom field layout.", - "[Improved] Use the site's default locale as the default country for new fields.", - "[Fixed] Remove duplicate name in microformatted outputs." + "Initial release for Craft." ] } ] \ No newline at end of file diff --git a/vzaddress/VzAddressPlugin.php b/vzaddress/VzAddressPlugin.php index fc33c0d..cd19d51 100644 --- a/vzaddress/VzAddressPlugin.php +++ b/vzaddress/VzAddressPlugin.php @@ -11,7 +11,7 @@ public function getName() { } public function getVersion() { - return '1.0.5'; + return '1.0.6'; } public function getSchemaVersion() { diff --git a/vzaddress/models/VzAddress_AddressModel.php b/vzaddress/models/VzAddress_AddressModel.php index 95c3968..f769456 100644 --- a/vzaddress/models/VzAddress_AddressModel.php +++ b/vzaddress/models/VzAddress_AddressModel.php @@ -113,7 +113,7 @@ public function staticMapUrl($params = array()) { $size = isset($params['markerSize']) ? strtolower($params['markerSize']) : false; $label = isset($params['markerLabel']) ? strtoupper($params['markerLabel']) : false; $color = isset($params['markerColor']) ? strtolower($params['markerColor']) : false; - $key = isset($params['key']) ? strtolower($params['key']) : false; + $key = isset($params['key']) ? $params['key'] : false; // Normalize the color parameter $color = str_replace('#', '0x', $color);