MDL-79858 block_myoverview: correctly export request course button.

This commit is contained in:
Paul Holden
2023-10-26 13:40:31 +01:00
parent 150d134fa2
commit 90d7b45f5f
+2 -2
View File
@@ -509,7 +509,7 @@ class main implements renderable, templatable {
);
return $this->generate_zero_state_data(
$nocoursesimg,
[$button],
[$button->export_for_template($output)],
['title' => 'zero_request_title', 'intro' => 'zero_request_intro']
);
}
@@ -580,7 +580,7 @@ class main implements renderable, templatable {
* Generate the state zero data.
*
* @param \moodle_url $imageurl The URL to the image to show
* @param \single_button[] $buttons
* @param string[] $buttons Exported {@see \single_button} instances
* @param array $strings Title and intro strings for the zero state if needed.
* @return array Context variables for the template
*/