MDL-49845 notes: Changed headers for notes index

This commit is contained in:
Dave Cooper
2015-05-04 14:02:17 +08:00
parent a7e98a6900
commit 327e68e69d
3 changed files with 28 additions and 8 deletions
-5
View File
@@ -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.