Skip to content

Commit

Permalink
MDL-49688 navigation: Update to overview report and my index.
Browse files Browse the repository at this point in the history
Part of MDL-45774.
  • Loading branch information
abgreeve committed Apr 10, 2015
1 parent f45c9b6 commit 0ef6c85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion grade/report/overview/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public function print_teacher_table() {

/**
* Processes the data sent by the form (grades and feedbacks).
* @var array $data
* @param array $data
* @return bool Success or Failure (array of errors).
*/
function process_data($data) {
Expand Down
9 changes: 5 additions & 4 deletions my/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@
if (optional_param('setdefaulthome', false, PARAM_BOOL)) {
set_user_preference('user_home_page_preference', HOMEPAGE_MY);
} else if (!empty($CFG->defaulthomepage) && $CFG->defaulthomepage == HOMEPAGE_USER) {
$PAGE->settingsnav->find('usercurrentsettings', null)->add(get_string('makethismyhome'),
new moodle_url('/my/', array('setdefaulthome'=>true)), navigation_node::TYPE_SETTING);
$PAGE->settingsnav->find('usercurrentsettings', null)->add(get_string('makethismyhome'),
new moodle_url('/my/', array('setdefaulthome' => true)), navigation_node::TYPE_SETTING);
}
} else {
$mycoursenode = $PAGE->navigation->get('mycourses')->make_inactive();
}
}
$mycoursenode = $PAGE->navigation->get('mycourses');
$mycoursenode->collapse = true;
$mycoursenode->make_inactive();

// Toggle the editing state and switches
if ($PAGE->user_allowed_editing()) {
Expand Down

0 comments on commit 0ef6c85

Please sign in to comment.