Skip to content

Commit

Permalink
Merge branch 'MDL-52560-m' of https://github.com/micaherne/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and danpoltawski committed Jan 12, 2016
2 parents c7198e2 + 1898752 commit 0755d63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/navigationlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3888,8 +3888,10 @@ protected function load_course_settings($forceopen = false) {
}

//Add badges navigation
require_once($CFG->libdir .'/badgeslib.php');
badges_add_course_navigation($coursenode, $course);
if (!empty($CFG->enablebadges)) {
require_once($CFG->libdir .'/badgeslib.php');
badges_add_course_navigation($coursenode, $course);
}

// Backup this course
if (has_capability('moodle/backup:backupcourse', $coursecontext)) {
Expand Down

0 comments on commit 0755d63

Please sign in to comment.