From 8a6abdf6f11c451a0be2c076c889685bac8488cc Mon Sep 17 00:00:00 2001 From: AntonLV Date: Tue, 15 Oct 2024 13:35:51 +0300 Subject: [PATCH] Ticket #4558 - Build-in API support: Courses. --- modules/boonex/courses/classes/BxCoursesModule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/boonex/courses/classes/BxCoursesModule.php b/modules/boonex/courses/classes/BxCoursesModule.php index 916fc64eaf..e5f23c2e5c 100644 --- a/modules/boonex/courses/classes/BxCoursesModule.php +++ b/modules/boonex/courses/classes/BxCoursesModule.php @@ -327,7 +327,7 @@ public function serviceEntityStructureL1Block($iContentId = 0) 'per_page' => ($iPerPage = bx_get('per_page')) !== false ? (int)$iPerPage : 0, ]); - return $this->_bIsApi ? [bx_api_get_block('entity_structure_l1', $mixedResult)] : $mixedResult; + return $this->_bIsApi ? [bx_api_get_block('course_structure', $mixedResult)] : $mixedResult; } public function serviceEntityStructureL2Block($iContentId = 0, $iParentId = 0) @@ -342,7 +342,7 @@ public function serviceEntityStructureL2Block($iContentId = 0, $iParentId = 0) 'parent_id' => $iParentId ]); - return $this->_bIsApi ? [bx_api_get_block('entity_structure_l2', $mixedResult)] : $mixedResult; + return $this->_bIsApi ? [bx_api_get_block('module_structure', $mixedResult)] : $mixedResult; } public function serviceEntityNodeBlock($iContentId = 0, $iNodeId = 0, $iUsage = false)