MDL-12403 backup: configure question bank in automated backups
This commit is contained in:
@@ -236,6 +236,7 @@ if ($hassiteconfig
|
||||
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_userscompletion', new lang_string('generaluserscompletion','backup'), new lang_string('configgeneraluserscompletion','backup'), 1));
|
||||
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_logs', new lang_string('generallogs', 'backup'), new lang_string('configgenerallogs', 'backup'), 0));
|
||||
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_histories', new lang_string('generalhistories','backup'), new lang_string('configgeneralhistories','backup'), 0));
|
||||
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_questionbank', new lang_string('generalquestionbank','backup'), new lang_string('configgeneralquestionbank','backup'), 1));
|
||||
|
||||
|
||||
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_messages', new lang_string('messages', 'message'), new lang_string('backupmessageshelp','message'), 0));
|
||||
|
||||
@@ -386,7 +386,8 @@ abstract class backup_cron_automated_helper {
|
||||
'badges' => 'backup_auto_badges',
|
||||
'completion_information' => 'backup_auto_userscompletion',
|
||||
'logs' => 'backup_auto_logs',
|
||||
'histories' => 'backup_auto_histories'
|
||||
'histories' => 'backup_auto_histories',
|
||||
'questionbank' => 'backup_auto_questionbank'
|
||||
);
|
||||
foreach ($settings as $setting => $configsetting) {
|
||||
if ($bc->get_plan()->setting_exists($setting)) {
|
||||
|
||||
@@ -86,6 +86,7 @@ $string['configgeneralcomments'] = 'Sets the default for including comments in a
|
||||
$string['configgeneralfilters'] = 'Sets the default for including filters in a backup.';
|
||||
$string['configgeneralhistories'] = 'Sets the default for including user history within a backup.';
|
||||
$string['configgenerallogs'] = 'If enabled logs will be included in backups by default.';
|
||||
$string['configgeneralquestionbank'] = 'If enabled the question bank will be included in backups by default. PLEASE NOTE: Disabling this setting with disable the backup of activities which use the question bank, such as the quiz.';
|
||||
$string['configgeneralroleassignments'] = 'If enabled by default roles assignments will also be backed up.';
|
||||
$string['configgeneraluserscompletion'] = 'If enabled user completion information will be included in backups by default.';
|
||||
$string['configgeneralusers'] = 'Sets the default for whether to include users in backups.';
|
||||
@@ -136,6 +137,7 @@ $string['generalfilters'] = 'Include filters';
|
||||
$string['generalhistories'] = 'Include histories';
|
||||
$string['generalgradehistories'] = 'Include histories';
|
||||
$string['generallogs'] = 'Include logs';
|
||||
$string['generalquestionbank'] = 'Include question bank';
|
||||
$string['generalroleassignments'] = 'Include role assignments';
|
||||
$string['generalsettings'] = 'General backup settings';
|
||||
$string['generaluserscompletion'] = 'Include user completion information';
|
||||
|
||||
Reference in New Issue
Block a user