chat-report log action is now restored properly.

This commit is contained in:
stronk7
2005-04-02 00:33:44 +00:00
parent b257080800
commit 8a5f8d79d1
+11
View File
@@ -175,6 +175,17 @@
$log->url = "index.php?id=".$log->course;
$status = true;
break;
case "report":
if ($log->cmid) {
//Get the new_id of the module (to recode the info field)
$mod = backup_getid($restore->backup_unique_code,$log->module,$log->info);
if ($mod) {
$log->url = "report.php?id=".$log->cmid;
$log->info = $mod->new_id;
$status = true;
}
}
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;