From 27bab74dabd16a1fcd702e4e85f842125f8d9dc1 Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Wed, 13 Dec 2023 10:27:31 +0000 Subject: [PATCH] updated license url/function --- utils/wpckan-utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/wpckan-utils.php b/utils/wpckan-utils.php index 410f635..d4761d5 100755 --- a/utils/wpckan-utils.php +++ b/utils/wpckan-utils.php @@ -672,9 +672,9 @@ function wpckan_valid_id($id){ } function wpckan_get_license_list(){ - $path_to_license_file = wpckan_get_ckan_domain() . '/licenses.json'; + $path_to_license_file = wpckan_get_ckan_domain() . 'api/action/license_list'; $json_file = wpckan_do_curl($path_to_license_file); - return json_decode($json_file); + return json_decode($json_file)['result']; } function wpckan_is_date($value){