mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Merge branch 'MDL-50289-master-notes' of git://github.com/mudrd8mz/moodle
This commit is contained in:
commit
c8f92d487a
@ -379,6 +379,13 @@ function note_view($context, $userid) {
|
||||
* @return bool
|
||||
*/
|
||||
function core_notes_myprofile_navigation(core_user\output\myprofile\tree $tree, $user, $iscurrentuser, $course) {
|
||||
global $CFG;
|
||||
|
||||
if (empty($CFG->enablenotes)) {
|
||||
// Notes are disabled, nothing to do.
|
||||
return false;
|
||||
}
|
||||
|
||||
$url = new moodle_url("/notes/index.php", array('user' => $user->id));
|
||||
$title = get_string('notes', 'core_notes');
|
||||
if (empty($course)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user