Skip to content

Commit

Permalink
Change my courses to my home depending on setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusso committed Nov 17, 2023
1 parent c44b6ba commit 1074b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme/snap/classes/output/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1074b7a

Please sign in to comment.