mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-33763-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
58e70de193
1 changed files with 1 additions and 1 deletions
|
@ -2228,7 +2228,7 @@ class global_navigation extends navigation_node {
|
|||
// Add a node to view the users notes if permitted
|
||||
if (!empty($CFG->enablenotes) && has_any_capability(array('moodle/notes:manage', 'moodle/notes:view'), $coursecontext)) {
|
||||
$url = new moodle_url('/notes/index.php',array('user'=>$user->id));
|
||||
if ($coursecontext->instanceid) {
|
||||
if ($coursecontext->instanceid != SITEID) {
|
||||
$url->param('course', $coursecontext->instanceid);
|
||||
}
|
||||
$usernode->add(get_string('notes', 'notes'), $url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue