Skip to content

Commit

Permalink
Update my courses link to point to my courses
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusso committed Nov 17, 2023
1 parent e381060 commit c44b6ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion theme/snap/classes/output/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,11 @@ public function snapnavbar($coverimage = '') {
if (!empty($coverimage)) {
$attrs['class'] .= ' mast-breadcrumb';
}
$snapmycourses = html_writer::link(new moodle_url('/my/courses.php'), get_string('menu', 'theme_snap'), $attrs);
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);
}
$filteredbreadcrumbs = $this->remove_duplicated_breadcrumbs($this->page->navbar->get_items());
foreach ($filteredbreadcrumbs as $item) {
$item->hideicon = true;
Expand Down

0 comments on commit c44b6ba

Please sign in to comment.