Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor change to avoid timeouts copying user files

and course files.
  • Loading branch information...
commit 4912fae11b21e53ad2bdabb03673aa8916e784b9 1 parent dafb597
stronk7 authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 backup/restorelib.php
View
16 backup/restorelib.php
@@ -609,6 +609,14 @@ function restore_user_files($restore) {
$dest_dir."/".$data->new_id);
$counter ++;
}
+ //Do some output
+ if ($counter % 2 == 0) {
+ echo ".";
+ if ($counter % 40 == 0) {
+ echo "<br>";
+ }
+ backup_flush(300);
+ }
}
}
}
@@ -652,6 +660,14 @@ function restore_course_files($restore) {
$dest_dir."/".$dir);
$counter ++;
}
+ //Do some output
+ if ($counter % 2 == 0) {
+ echo ".";
+ if ($counter % 40 == 0) {
+ echo "<br>";
+ }
+ backup_flush(300);
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.