From 90d7b45f5f4b05644c485e2bc494a3274fc05fda Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Thu, 26 Oct 2023 13:33:55 +0100 Subject: [PATCH] MDL-79858 block_myoverview: correctly export request course button. --- blocks/myoverview/classes/output/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/myoverview/classes/output/main.php b/blocks/myoverview/classes/output/main.php index 90b42c1752b..c2df28b0fac 100644 --- a/blocks/myoverview/classes/output/main.php +++ b/blocks/myoverview/classes/output/main.php @@ -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 */