MDL-24718 import - always import adding
This commit is contained in:
@@ -243,10 +243,10 @@ class core_backup_renderer extends plugin_renderer_base {
|
||||
foreach ($nextstageurl->params() as $key=>$value) {
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>$key, 'value'=>$value));
|
||||
}
|
||||
// We only allow import adding for now. Enforce it here.
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'target', 'value'=>backup::TARGET_CURRENT_ADDING));
|
||||
$html .= html_writer::start_tag('div', array('class'=>'ics-existing-course backup-section'));
|
||||
$html .= $this->output->heading(get_string('importdatafrom'), 2, array('class'=>'header'));
|
||||
$html .= $this->backup_detail_input(get_string('importadding', 'backup'), 'radio', 'target', backup::TARGET_CURRENT_ADDING, array('checked'=>'checked'), get_string('importaddingdesc', 'backup'));
|
||||
$html .= $this->backup_detail_input(get_string('importdeleting', 'backup'), 'radio', 'target', backup::TARGET_CURRENT_DELETING, array(), get_string('importdeletingdesc', 'backup'));
|
||||
$html .= $this->backup_detail_pair(get_string('selectacourse', 'backup'), $this->render($courses));
|
||||
$html .= $this->backup_detail_pair('', html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('continue'))));
|
||||
$html .= html_writer::end_tag('div');
|
||||
|
||||
@@ -118,8 +118,6 @@ $string['generaluserscompletion'] = 'Include user completion information';
|
||||
$string['generaluserfiles'] = 'Include user files';
|
||||
$string['generalusers'] = 'Include users';
|
||||
$string['importfile'] = 'Import a backup file';
|
||||
$string['importadding'] = 'Import adding';
|
||||
$string['importaddingdesc'] = 'Merge the selected course into this course';
|
||||
$string['importbackupstage1action'] = 'Next';
|
||||
$string['importbackupstage2action'] = 'Next';
|
||||
$string['importbackupstage4action'] = 'Perform import';
|
||||
@@ -131,8 +129,6 @@ $string['importcurrentstage2'] = 'Schema settings';
|
||||
$string['importcurrentstage4'] = 'Confirmation and review';
|
||||
$string['importcurrentstage8'] = 'Perform import';
|
||||
$string['importcurrentstage16'] = 'Complete';
|
||||
$string['importdeleting'] = 'Import deleting';
|
||||
$string['importdeletingdesc'] = 'Delete the contents of this course and then import the selected course';
|
||||
$string['importsuccess'] = 'Import complete. Click continue to return to the course.';
|
||||
$string['includeactivities'] = 'Include:';
|
||||
$string['includeditems'] = 'Included items:';
|
||||
|
||||
Reference in New Issue
Block a user