Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed hardcoded filepath. Bug #4544.

  • Loading branch information...
commit 35c808396adb6e20940c1be555998bc8e167a5a0 1 parent 2efe76b
thepurpleblob authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/quiz/export.php
View
5 mod/quiz/export.php
@@ -32,6 +32,7 @@
$strexportquestions = get_string("exportquestions", "quiz");
$strquestions = get_string("questions", "quiz");
+ $strexportfilename = get_string('exportfilename','quiz');
$strquizzes = get_string('modulenameplural', 'quiz');
$streditingquiz = get_string(isset($SESSION->modform->instance) ? "editingquiz" : "editquestions", "quiz");
@@ -78,10 +79,10 @@
$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;
+ $efile = "{$CFG->wwwroot}/file.php/$course->id/$strexportfilename/$exportfilename".$file_ext;
}
else {
- $efile = "{$CFG->wwwroot}/file.php?file=/$course->id/quiz/$exportfilename".$file_ext;
+ $efile = "{$CFG->wwwroot}/file.php?file=/$course->id/$strexportfilename/$exportfilename".$file_ext;
}
echo "</p><center><a href=\"$efile\">$download_str</a></center></p>";
echo "</p><center><font size=\"-1\">$downloadextra_str</font></center></p>";
Please sign in to comment.
Something went wrong with that request. Please try again.