From 9bd76b32f3a8cb43b99f1f8009aa45016391b2d2 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 17 May 2006 11:40:37 +0000 Subject: [PATCH] Merge from 1.6 branch. Fix URL syntax error when slasharguments is off. --- question/export.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/question/export.php b/question/export.php index bee47cfd86..fcdd42ecec 100644 --- a/question/export.php +++ b/question/export.php @@ -114,12 +114,11 @@ $quizexportdir = get_string( 'exportfilename', 'quiz' ); $downloadextra_str = get_string( 'downloadextra','quiz' ); if ($CFG->slasharguments) { - $efile = "{$CFG->wwwroot}/file.php/$course->id/$quizexportdir/$exportfilename".$file_ext; + $efile = "{$CFG->wwwroot}/file.php/$course->id/$quizexportdir/$exportfilename".$file_ext."?forcedownload=1"; } else { - $efile = "{$CFG->wwwroot}/file.php?file=/$course->id/$quizexportdir/$exportfilename".$file_ext; + $efile = "{$CFG->wwwroot}/file.php?file=/$course->id/$quizexportdir/$exportfilename".$file_ext."&forcedownload=1"; } - $efile .= "?forcedownload=1"; echo "

$download_str

"; echo "

$downloadextra_str

"; -- 2.39.5