One minor problem restoring categories in XHTML solved

This commit is contained in:
stronk7 2005-02-07 23:45:19 +00:00
parent e09087bc76
commit 0183a6c48e
2 changed files with 6 additions and 3 deletions

View File

@ -219,10 +219,12 @@
//Now create categories and questions as needed (STEP1)
if ($status and ($restore->mods['quiz']->restore)) {
echo "</li><li>".get_string("creatingcategoriesandquestions")."</li>";
echo "</li><li>".get_string("creatingcategoriesandquestions");
echo "<ul>";
if (!$status = restore_create_questions($restore,$xml_file)) {
notify("Could not restore categories and questions!");
}
echo "</ul></li>";
}
//Now create user_files as needed

View File

@ -269,10 +269,10 @@
//Do some output
if ($status) {
echo "<li>".get_string("category")." \"".$quiz_cat->name."\"</li>";
echo "<li>".get_string("category")." \"".$quiz_cat->name."\"<br />";
} else {
//We must never arrive here !!
echo "<li>".get_string("category")." \"".$quiz_cat->name."\" Error!</li>";
echo "<li>".get_string("category")." \"".$quiz_cat->name."\" Error!<br />";
}
backup_flush(300);
@ -286,6 +286,7 @@
} else {
$status = false;
}
echo '</li>';
}
return $status;