Skip to content
Permalink
Browse files

Fixed hardcoded filepath. Bug #4544.

  • Loading branch information...
thepurpleblob
thepurpleblob committed Mar 21, 2006
1 parent 2efe76b commit 35c808396adb6e20940c1be555998bc8e167a5a0
Showing with 3 additions and 2 deletions.
  1. +3 −2 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>";

0 comments on commit 35c8083

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.