Permalink
Browse files

Merged from MOODLE_15_STABLE

Errors will now return to course page instead of site. Related to Bug 3418.
  • Loading branch information...
ikawhero
ikawhero committed Jun 5, 2005
1 parent 7b983e8 commit 1eca613343380cd40c01fe9886bed640b865a5bd
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 1eca613

Please sign in to comment.