aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Courseware/StructuralElement.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/Courseware/StructuralElement.php')
-rwxr-xr-xlib/models/Courseware/StructuralElement.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/models/Courseware/StructuralElement.php b/lib/models/Courseware/StructuralElement.php
index 54e2880..ba1563e 100755
--- a/lib/models/Courseware/StructuralElement.php
+++ b/lib/models/Courseware/StructuralElement.php
@@ -768,8 +768,10 @@ SQL;
{
$containers = \Courseware\Container::findBySQL('structural_element_id = ?', [$this->id]);
+ $html = '';
foreach ($containers as $container) {
- $html .= $container->type->pdfExport();
+ $container_html_template = $container->type->getPdfHtmlTemplate();
+ $html .= $container_html_template ? $container_html_template->render() : '';
}
return $html;