Skip to content

Commit

Permalink
MDL-12403 backup: ability configure default for question bank excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Sep 26, 2013
1 parent 6507aae commit 99d5203
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/settings/courses.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_userscompletion', new lang_string('generaluserscompletion','backup'), new lang_string('configgeneraluserscompletion','backup'), array('value'=>1, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_logs', new lang_string('generallogs','backup'), new lang_string('configgenerallogs','backup'), array('value'=>0, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_histories', new lang_string('generalhistories','backup'), new lang_string('configgeneralhistories','backup'), array('value'=>0, 'locked'=>0)));
$temp->add(new admin_setting_configcheckbox_with_lock('backup/backup_general_questionbank', new lang_string('generalquestionbank','backup'), new lang_string('configgeneralquestionbank','backup'), array('value'=>1, 'locked'=>0)));
$ADMIN->add('backups', $temp);

// Create a page for general import configuration and defaults.
Expand Down
3 changes: 2 additions & 1 deletion backup/util/dbops/backup_controller_dbops.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,8 @@ private static function apply_general_config_defaults(backup_controller $control
'backup_general_badges' => 'badges',
'backup_general_userscompletion' => 'userscompletion',
'backup_general_logs' => 'logs',
'backup_general_histories' => 'grade_histories'
'backup_general_histories' => 'grade_histories',
'backup_general_questionbank' => 'questionbank'
);
$plan = $controller->get_plan();
foreach ($settings as $config=>$settingname) {
Expand Down
1 change: 1 addition & 0 deletions lang/en/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
$string['generallogs'] = 'Include logs';
$string['generalquestionbank'] = 'Include question bank';
$string['generalroleassignments'] = 'Include role assignments';
$string['generalquestionbank'] = 'Include question bank';
$string['generalsettings'] = 'General backup settings';
$string['generaluserscompletion'] = 'Include user completion information';
$string['generalusers'] = 'Include users';
Expand Down

0 comments on commit 99d5203

Please sign in to comment.