diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e8923b..3a97474 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Version X.X.X (YYYYMMDDXX) - Fix opening job details modal for quizzes with single quotes in their names +- Prepare backup creation routine for Moodle 4.6 and above - Add hint about font rendering problems to the documentation diff --git a/classes/BackupManager.php b/classes/BackupManager.php index 8b67e18..8f7f56a 100644 --- a/classes/BackupManager.php +++ b/classes/BackupManager.php @@ -58,7 +58,6 @@ class BackupManager { 'userscompletion' => true, 'logs' => true, 'grade_histories' => true, - 'questionbank' => true, 'groups' => true, 'contentbankcontent' => true, 'legacyfiles' => true, @@ -207,6 +206,11 @@ protected static function initiate_backup(string $type, int $id, int $userid): o foreach (self::BACKUP_SETTINGS as $name => $value) { $task->get_setting($name)->set_value($value); } + + // Questions are not automatically included in Moodle 4.5 and below. + if ($CFG->branch <= 405) { + $task->get_setting('questionbank')->set_value(true); + } } }