}
else {
if (empty($noredirect)) {
- redirect($CFG->wwwroot.'/backup/restore.php?backup_unique_code='.$backup_unique_code.'&launch=form&file='.$file.'&id='.$id);
+ // in 2.0 we must not print "Continue" redirect link here, because ppl click on it and the execution gets interrupted on next page!!!
+ // imo RESTORE_SILENTLY is an ugly hack :-P
+ $sillystr = get_string('donotclickcontinue');
+ redirect($CFG->wwwroot.'/backup/restore.php?backup_unique_code='.$backup_unique_code.'&launch=form&file='.$file.'&id='.$id, $sillystr, 0);
+
} else {
return $backup_unique_code;
}
$string['displayonpage'] = 'Display on page';
$string['documentation'] = 'Moodle Documentation';
$string['donotask'] = 'Do Not Ask';
+$string['donotclickcontinue'] = 'Do not click on the following continue link ;-)';
$string['down'] = 'Down';
$string['downloadexcel'] = 'Download in Excel format';
$string['downloadfile'] = 'Download file';