MDL-30249 Display warning when downloading/uploading a file

This commit is contained in:
Jerome Mouneyrac
2012-02-17 17:05:27 +08:00
parent ad5202771a
commit e90d5dcfb2
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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'),
+3
View File
@@ -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