From 9b91daff9ab4297e84829f10fde7e6390315eb08 Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Tue, 7 May 2024 20:55:20 +0100 Subject: [PATCH] Fix missing renderer. --- classes/output/renderer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/output/renderer.php b/classes/output/renderer.php index 66d6d82..ee6f87c 100644 --- a/classes/output/renderer.php +++ b/classes/output/renderer.php @@ -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;