From: tjhunt Date: Wed, 17 May 2006 11:40:37 +0000 (+0000) Subject: Merge from 1.6 branch. Fix URL syntax error when slasharguments is off. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9bd76b32f3a8cb43b99f1f8009aa45016391b2d2;p=moodle.git Merge from 1.6 branch. Fix URL syntax error when slasharguments is off. --- 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

";