diff --git a/mod/quiz/export.php b/mod/quiz/export.php
index 3f835d0db0d..f00681423c1 100644
--- a/mod/quiz/export.php
+++ b/mod/quiz/export.php
@@ -58,8 +58,21 @@
error("Error occurred during post-processing!",
"$CFG->wwwroot/mod/quiz/export.php?category=$category->id");
}
-
echo "
";
+
+ // link to download the finished file
+ $file_ext = $format->export_file_extension();
+ $download_str = get_string( 'download', 'quiz' );
+ $downloadextra_str = get_string( 'downloadextra','quiz' );
+ if ($CFG->slasharguments) {
+ $efile = "{$CFG->wwwroot}/file.php/$course->id/quiz/$exportfilename".$file_ext;
+ }
+ else {
+ $efile = "{$CFG->wwwroot}/file.php?file=/$course->id/quiz/$exportfilename".$file_ext;
+ }
+ echo "$download_str";
+ echo "$downloadextra_str";
+
print_continue("edit.php");
print_footer($course);
exit;