From 4912fae11b21e53ad2bdabb03673aa8916e784b9 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 21 Jun 2003 22:37:57 +0000 Subject: [PATCH] Minor change to avoid timeouts copying user files and course files. --- backup/restorelib.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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); + } } } } -- 2.39.5