Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-30249 Display warning when downloading/uploading a file

  • Loading branch information...
commit e90d5dcfb2838253e49830239aa0d56101040bb6 1 parent ad52027
@mouneyrac mouneyrac authored
View
3  blocks/community/communitycourse.php
@@ -110,6 +110,9 @@
$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'),
View
3  course/publish/backup.php
@@ -100,6 +100,9 @@
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

0 comments on commit e90d5dc

Please sign in to comment.
Something went wrong with that request. Please try again.