Skip to content

Commit c651f7c

Browse files
Merge pull request #7483 from christianbeeznest/GH-7469
Learnpath: fix navigation & loader when TOC is hidden - refs #7469
2 parents 5d89144 + d4f49db commit c651f7c

4 files changed

Lines changed: 659 additions & 350 deletions

File tree

public/main/lp/lp_view.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,9 @@
477477
$template->assign('teacher_toc_buttons', $get_teacher_buttons);
478478
$template->assign('iframe_src', $src);
479479
$template->assign('navigation_bar_bottom', $navigation_bar_bottom);
480-
$template->assign('show_left_column', !$lp->getHideTocFrame());
480+
$tocHidden = (bool) $lp->getHideTocFrame();
481+
$template->assign('toc_hidden', (int) $tocHidden);
482+
$template->assign('show_left_column', $tocHidden ? 0 : 1);
481483

482484
$showMenu = 0;
483485
$settings = api_get_setting('lp.lp_view_settings', true);

0 commit comments

Comments
 (0)