From 1033221c21d82b4c085c44de37822db9740eab58 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 1 Jan 2009 16:05:37 +0000 Subject: [PATCH] MDL-15172 lowered timeoout and adding warning that users must not click continue in middle of course import - this is a silly workaround, unfortunately I did not find better solution --- backup/restorelib.php | 6 +++++- lang/en_utf8/moodle.php | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backup/restorelib.php b/backup/restorelib.php index d910af9884..219af471e2 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -7567,7 +7567,11 @@ define('RESTORE_GROUPS_GROUPINGS', 3); } 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; } diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index e59a867510..cf7d87315d 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -438,6 +438,7 @@ $string['displayingusers'] = 'Displaying users $a->start to $a->end'; $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'; -- 2.39.5