MDL-30249 Display warning when downloading/uploading a file
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user