Permalink
Browse files

Errors will now return to course page instead of site. Related to Bug…

… 3418.
  • Loading branch information...
1 parent 9dadc1a commit e4cedd797a23ee1b6fb05356128448a2b069f39e ikawhero committed Jun 5, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 grade/lib.php
View
@@ -1857,11 +1857,11 @@ function grade_view_category_grades($view_by_student) {
echo '</table>';
}
else { // no grades returned
- error(get_string('nogradesreturned','grades'));
+ error(get_string('nogradesreturned','grades'), $CFG->wwwroot.'/course/view.php?id='.$course->id);
}
}
else {
- error(get_string('nocategoryview','grades'));
+ error(get_string('nocategoryview','grades'), $CFG->wwwroot.'/course/view.php?id='.$course->id);
}
}

0 comments on commit e4cedd7

Please sign in to comment.