From 832876628016be1c56e76b8d767610ec20f25062 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 20 Jun 2003 19:46:01 +0000 Subject: [PATCH] Changes to work with data from fs instead of db. Show progress info Output data to the browser to avoid timeouts. --- backup/mod/assignment/restorelib.php | 11 ++++------- backup/mod/choice/restorelib.php | 11 ++++------- backup/mod/resource/restorelib.php | 7 ++----- backup/mod/survey/restorelib.php | 15 ++++++--------- 4 files changed, 16 insertions(+), 28 deletions(-) diff --git a/backup/mod/assignment/restorelib.php b/backup/mod/assignment/restorelib.php index 14d82d5d4929c..25a3d4b371923 100644 --- a/backup/mod/assignment/restorelib.php +++ b/backup/mod/assignment/restorelib.php @@ -32,11 +32,8 @@ function assignment_restore_mods($mod,$restore) { $data = backup_getid($restore->backup_unique_code,$mod->modtype,$mod->id); if ($data) { - //We have info, get and unserialize info - //First strip slashes - $temp = stripslashes($data->info); //Now get completed xmlized object - $info = unserialize($temp); + $info = $data->info; //traverse_xmlize($info); //Debug //print_object ($GLOBALS['traverse_array']); //Debug //$GLOBALS['traverse_array']=""; //Debug @@ -57,7 +54,7 @@ function assignment_restore_mods($mod,$restore) { $newid = insert_record ("assignment",$assignment); //Do some output - echo "