From 49192eeac2bb2f7d1203aadad26966e04e0b842c Mon Sep 17 00:00:00 2001 From: Nikola Bozhkov Date: Tue, 23 Jan 2024 09:10:06 +0000 Subject: [PATCH] Simplify function --- renderer.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/renderer.php b/renderer.php index 49e1af0..8becc05 100644 --- a/renderer.php +++ b/renderer.php @@ -160,14 +160,12 @@ public function fetch_course_read_only_notification(): string { */ public function show_unfreeze_button(int $courseid): string { $context = context_course::instance($courseid); - $content =''; $freezeurl = new moodle_url('/admin/lock.php', ['id' => $context->id]); - $content .= html_writer::div( + return html_writer::div( '' . get_string('button:unfreezecoursecontext', 'block_lifecycle') . '' ); - return $content; } }