Skip to content

Commit

Permalink
Fix missing renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed May 7, 2024
1 parent 488cab6 commit 9b91daf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/output/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ public function __construct(\moodle_page $page, $target) {

$this->editing = $page->user_is_editing();
// Use our custom course renderer if we need to.
if ((!$this->editing) && ($this->courseformat->get_course_display() == COURSE_DISPLAY_SINGLEPAGE)) {
if ($this->courseformat->show_editor()) {
$this->courserenderer = $this->page->get_renderer('format_vsf', 'course');
}
if ((!$this->editing) && ($this->courseformat->get_course_display() == COURSE_DISPLAY_SINGLEPAGE)) {
$this->moduleview = true;
} else {
$this->moduleview = false;
Expand Down

0 comments on commit 9b91daf

Please sign in to comment.