Skip to content
Permalink
Browse files

MDL-49332 gradebook: Raise time limit if we get into regrade

Because all regrading should (and does) start from this point, it
is safe and best to call it just once, from this point.
  • Loading branch information...
merrill-oakland committed Feb 27, 2015
1 parent b855cfc commit 69031e3e1de6f3334f1197abd4da779233dbad33
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/gradelib.php
@@ -1029,6 +1029,8 @@ function grade_recover_history_grades($userid, $courseid) {
* @return bool true if ok, array of errors if problems found. Grade item id => error message
*/
function grade_regrade_final_grades($courseid, $userid=null, $updated_item=null) {
// This may take a very long time.
\core_php_time_limit::raise();
$course_item = grade_item::fetch_course_item($courseid);

0 comments on commit 69031e3

Please sign in to comment.
You can’t perform that action at this time.