Skip to content

Commit

Permalink
First version of restore logs !!
Browse files Browse the repository at this point in the history
It restores:
    course logs
    user logs
Todo:
    module logs

Coming soon :-)
  • Loading branch information
stronk7 committed Feb 13, 2004
1 parent 8d75b3b commit 2ecad74
Show file tree
Hide file tree
Showing 4 changed files with 405 additions and 4 deletions.
1 change: 0 additions & 1 deletion backup/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ function backup_putid ($backup_unique_code, $table, $old_id, $new_id, $info="")
global $CFG;

$max_db_storage = 128; //Max bytes to save to db, else save to file
//MUST BE LOWER THAN 256 (VARCHAR LIMIT)

$status = true;

Expand Down
5 changes: 4 additions & 1 deletion backup/restore_execute.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@

//Now create log entries as needed
if ($status and ($restore->logs)) {
echo "<li>".get_string("creatinglogentries")."<b> (not implemented!!)</b>";
echo "<li>".get_string("creatinglogentries")."<b> (working on it!!)</b>";
if (!$status = restore_create_logs($restore,$xml_file)) {
notify("Could not restore logs!");
}
}

//Now, if all is OK, adjust the instance field in course_modules !!
Expand Down
Loading

0 comments on commit 2ecad74

Please sign in to comment.