From 1074b7ac1ff727b3ec4d6a2354630e8588c387eb Mon Sep 17 00:00:00 2001 From: Robert Russo Date: Fri, 17 Nov 2023 21:16:28 +0000 Subject: [PATCH] Change my courses to my home depending on setting --- theme/snap/classes/output/core_renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/snap/classes/output/core_renderer.php b/theme/snap/classes/output/core_renderer.php index 72417f90905c0..62eefea1de324 100644 --- a/theme/snap/classes/output/core_renderer.php +++ b/theme/snap/classes/output/core_renderer.php @@ -2430,7 +2430,7 @@ public function snapnavbar($coverimage = '') { if (empty(get_config('theme_snap', 'personalmenuenablepersonalmenu'))) { $snapmycourses = html_writer::link(new moodle_url('/my/courses.php'), get_string('menu', 'theme_snap'), $attrs); } else { - $snapmycourses = html_writer::link(new moodle_url('/my/'), get_string('menu', 'theme_snap'), $attrs); + $snapmycourses = html_writer::link(new moodle_url('/my/'), get_string('myhome'), $attrs); } $filteredbreadcrumbs = $this->remove_duplicated_breadcrumbs($this->page->navbar->get_items()); foreach ($filteredbreadcrumbs as $item) {