diff --git a/plugins.json b/plugins.json index 23805097..b83992ea 100644 --- a/plugins.json +++ b/plugins.json @@ -70,7 +70,7 @@ "displayName": "KMZ Map", "description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map", - "version": "1.2.0", + "version": "1.2.1", "unmsVersionCompliancy": { "min": "1.0.0", "max": "2.1.0" diff --git a/plugins/kmz-map/kmz-map.zip b/plugins/kmz-map/kmz-map.zip index 9351d2a9..f42afc14 100644 Binary files a/plugins/kmz-map/kmz-map.zip and b/plugins/kmz-map/kmz-map.zip differ diff --git a/plugins/kmz-map/src/includes/config.class.php b/plugins/kmz-map/src/includes/config.class.php index 964a3b69..ece5210e 100644 --- a/plugins/kmz-map/src/includes/config.class.php +++ b/plugins/kmz-map/src/includes/config.class.php @@ -16,7 +16,7 @@ class Config public static $LINK_TWO = null; - public static function initializeStaticProperties($config_path) + public static function initializeStaticProperties($config_path): void { // ## Setup user configuration settings, if they exist @@ -26,16 +26,13 @@ public static function initializeStaticProperties($config_path) $config_json = json_decode($config_string); foreach ($config_json as $key => $value) { - - // ## Expect specific key naming convention $name = false; - $count = false; if (strpos($key, 'REQUIRED_') !== false) { $name = str_replace('REQUIRED_', '', $key); $new_value = $value; } elseif (strpos($key, 'HYPER_LINK_') !== false) { $name = str_replace('HYPER_LINK_', '', $key); - $new_value = self::parseLink($value); + $new_value = self::parseLink((string) $value); } elseif (strpos($key, 'OPTIONAL_') !== false) { $name = str_replace('OPTIONAL_', '', $key); $new_value = $value; @@ -54,7 +51,7 @@ public static function initializeStaticProperties($config_path) } } - private static function parseLink($link_string) + private static function parseLink(string $link_string): array { return explode('|', $link_string, 2); } diff --git a/plugins/kmz-map/src/manifest.json b/plugins/kmz-map/src/manifest.json index 8f224ec2..21d4b813 100644 --- a/plugins/kmz-map/src/manifest.json +++ b/plugins/kmz-map/src/manifest.json @@ -5,7 +5,7 @@ "displayName": "KMZ Map", "description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.", "url": "https://github.com/Ubiquiti-App/UCRM-plugins/tree/master/plugins/kmz-map", - "version": "1.2.0", + "version": "1.2.1", "unmsVersionCompliancy": { "min": "1.0.0", "max": null diff --git a/plugins_2.1.x.json b/plugins_2.1.x.json index 3fbc77eb..4f51159e 100644 --- a/plugins_2.1.x.json +++ b/plugins_2.1.x.json @@ -70,7 +70,7 @@ "displayName": "KMZ Map", "description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map", - "version": "1.2.0", + "version": "1.2.1", "unmsVersionCompliancy": { "min": "1.0.0", "max": null diff --git a/plugins_2.2.x.json b/plugins_2.2.x.json index b6bb48ca..2118f1de 100644 --- a/plugins_2.2.x.json +++ b/plugins_2.2.x.json @@ -70,7 +70,7 @@ "displayName": "KMZ Map", "description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map", - "version": "1.2.0", + "version": "1.2.1", "unmsVersionCompliancy": { "min": "1.0.0", "max": null diff --git a/plugins_2.3.x.json b/plugins_2.3.x.json index efd26b23..c94b5022 100644 --- a/plugins_2.3.x.json +++ b/plugins_2.3.x.json @@ -70,7 +70,7 @@ "displayName": "KMZ Map", "description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map", - "version": "1.2.0", + "version": "1.2.1", "unmsVersionCompliancy": { "min": "1.0.0", "max": null diff --git a/plugins_2.4.x.json b/plugins_2.4.x.json index efd26b23..c94b5022 100644 --- a/plugins_2.4.x.json +++ b/plugins_2.4.x.json @@ -70,7 +70,7 @@ "displayName": "KMZ Map", "description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map", - "version": "1.2.0", + "version": "1.2.1", "unmsVersionCompliancy": { "min": "1.0.0", "max": null diff --git a/plugins_2.5.x.json b/plugins_2.5.x.json index efd26b23..c94b5022 100644 --- a/plugins_2.5.x.json +++ b/plugins_2.5.x.json @@ -70,7 +70,7 @@ "displayName": "KMZ Map", "description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map", - "version": "1.2.0", + "version": "1.2.1", "unmsVersionCompliancy": { "min": "1.0.0", "max": null diff --git a/plugins_3.0.x.json b/plugins_3.0.x.json index efd26b23..c94b5022 100644 --- a/plugins_3.0.x.json +++ b/plugins_3.0.x.json @@ -70,7 +70,7 @@ "displayName": "KMZ Map", "description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.", "url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map", - "version": "1.2.0", + "version": "1.2.1", "unmsVersionCompliancy": { "min": "1.0.0", "max": null