From: stronk7 Date: Sat, 21 Jun 2003 22:37:57 +0000 (+0000) Subject: Minor change to avoid timeouts copying user files X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4912fae11b21e53ad2bdabb03673aa8916e784b9;p=moodle.git Minor change to avoid timeouts copying user files and course files. --- diff --git a/backup/restorelib.php b/backup/restorelib.php index beffb6dfc5..6f12fd4ebf 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -609,6 +609,14 @@ $dest_dir."/".$data->new_id); $counter ++; } + //Do some output + if ($counter % 2 == 0) { + echo "."; + if ($counter % 40 == 0) { + echo "
"; + } + backup_flush(300); + } } } } @@ -652,6 +660,14 @@ $dest_dir."/".$dir); $counter ++; } + //Do some output + if ($counter % 2 == 0) { + echo "."; + if ($counter % 40 == 0) { + echo "
"; + } + backup_flush(300); + } } } }