Skip to content

Commit

Permalink
Ticket #4558 - Build-in API support: Courses.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Oct 15, 2024
1 parent 05b1421 commit 8a6abdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/boonex/courses/classes/BxCoursesModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 8a6abdf

Please sign in to comment.