From e90d5dcfb2838253e49830239aa0d56101040bb6 Mon Sep 17 00:00:00 2001 From: Jerome Mouneyrac Date: Fri, 17 Feb 2012 17:02:40 +0800 Subject: [PATCH] MDL-30249 Display warning when downloading/uploading a file --- blocks/community/communitycourse.php | 3 +++ course/publish/backup.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/blocks/community/communitycourse.php b/blocks/community/communitycourse.php index 74e4bcd68ff..8daffbf5e16 100644 --- a/blocks/community/communitycourse.php +++ b/blocks/community/communitycourse.php @@ -110,6 +110,9 @@ if ($usercandownload and $download != -1 and !empty($downloadcourseid) and confi $sizeinfo->total = number_format($backupsize / 1000000, 2); echo html_writer::tag('div', get_string('downloadingsize', 'block_community', $sizeinfo), array('class' => 'textinfo')); + if (ob_get_level()) { + ob_flush(); + } flush(); $filenames = $communitymanager->block_community_download_course_backup($course); echo html_writer::tag('div', get_string('downloaded', 'block_community'), diff --git a/course/publish/backup.php b/course/publish/backup.php index b8481ad5828..61ab6331c74 100644 --- a/course/publish/backup.php +++ b/course/publish/backup.php @@ -100,6 +100,9 @@ echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('sendingcourse', 'hub'), 3, 'main'); $renderer = $PAGE->get_renderer('core', 'publish'); echo $renderer->sendingbackupinfo($backupfile); +if (ob_get_level()) { + ob_flush(); +} flush(); //send backup file to the hub