mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Now the question backup code has been separated from the quiz backup code.
This commit is contained in:
parent
8ceb3e67d5
commit
fe1106f0d1
8 changed files with 116 additions and 1336 deletions
|
@ -148,7 +148,7 @@
|
|||
if ($status and $preferences->mods['quiz']->backup) {
|
||||
echo "<li>".get_string("writingcategoriesandquestions").'</li>';
|
||||
require_once($CFG->dirroot.'/mod/quiz/backuplib.php');
|
||||
if (!$status = quiz_backup_question_categories($backup_file,$preferences)) {
|
||||
if (!$status = backup_question_categories($backup_file,$preferences)) {
|
||||
notify("An error occurred while backing up quiz categories");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -625,7 +625,7 @@ function schedule_backup_course_execute($preferences,$starttime = 0) {
|
|||
//questions structure (step 1). See notes on mod/quiz/backuplib.php
|
||||
if ($status and $preferences->mods['quiz']->backup) {
|
||||
schedule_backup_log($starttime,$preferences->backup_course," categories & questions");
|
||||
$status = quiz_backup_question_categories($backup_file,$preferences);
|
||||
$status = backup_question_categories($backup_file,$preferences);
|
||||
}
|
||||
|
||||
//Print logs if selected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue