]> git.mjollnir.org Git - moodle.git/commitdiff
Minor change to avoid timeouts copying user files
authorstronk7 <stronk7>
Sat, 21 Jun 2003 22:37:57 +0000 (22:37 +0000)
committerstronk7 <stronk7>
Sat, 21 Jun 2003 22:37:57 +0000 (22:37 +0000)
and course files.

backup/restorelib.php

index beffb6dfc51c42cf5793b157d029e0e33f541528..6f12fd4ebfa481e6ea915b506f872133906b3983 100644 (file)
                                               $dest_dir."/".$data->new_id);
                                 $counter ++;
                             }
+                            //Do some output
+                            if ($counter % 2 == 0) {
+                                echo ".";
+                                if ($counter % 40 == 0) {
+                                echo "<br>";
+                                }
+                                backup_flush(300);
+                            }
                         }
                     }
                 }
                                       $dest_dir."/".$dir);
                         $counter ++;
                     }
+                    //Do some output
+                    if ($counter % 2 == 0) {       
+                        echo ".";
+                        if ($counter % 40 == 0) {       
+                        echo "<br>";
+                        }
+                        backup_flush(300);
+                    }
                 }
             }
         }