MDL-49845 notes: Changed headers for notes index
This commit is contained in:
@@ -379,8 +379,6 @@ function note_view($context, $userid) {
|
||||
* @return bool
|
||||
*/
|
||||
function core_notes_myprofile_navigation(core_user\output\myprofile\tree $tree, $user, $iscurrentuser, $course) {
|
||||
global $USER;
|
||||
|
||||
$url = new moodle_url("/notes/index.php", array('user' => $user->id));
|
||||
$title = get_string('notes', 'core_notes');
|
||||
if (empty($course)) {
|
||||
@@ -389,9 +387,6 @@ function core_notes_myprofile_navigation(core_user\output\myprofile\tree $tree,
|
||||
// No cap, nothing to do.
|
||||
return false;
|
||||
}
|
||||
if ($user->id != $USER->id) {
|
||||
$url->param('course', 0);
|
||||
}
|
||||
} else {
|
||||
if (!has_capability('moodle/notes:view', context_course::instance($course->id))) {
|
||||
// No cap, nothing to do.
|
||||
|
||||
Reference in New Issue
Block a user