MDL-57447 block_myoverview: add context for courses view
[moodle.git] / blocks / myoverview / block_myoverview.php
index 92e7f80..f22ce15 100644 (file)
@@ -50,8 +50,11 @@ class block_myoverview extends block_base {
             return $this->content;
         }
 
+        $renderable = new \block_myoverview\output\main();
+        $renderer = $this->page->get_renderer('block_myoverview');
+
         $this->content = new stdClass();
-        $this->content->text = '';
+        $this->content->text = $renderer->render($renderable);
         $this->content->footer = '';
 
         return $this->content;