MDL-33467 fixed variable name conflict
authorMarina Glancy <marina@moodle.com>
Fri, 1 Jun 2012 03:11:32 +0000 (11:11 +0800)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 6 Jun 2012 10:17:07 +0000 (11:17 +0100)
question/previewlib.php

index c3ffc19..f763557 100644 (file)
@@ -228,7 +228,7 @@ class question_preview_options extends question_display_options {
  * @return bool false if file not found, does not return if found - justsend the file
  */
 function question_preview_question_pluginfile($course, $context, $component,
-        $filearea, $qubaid, $slot, $args, $forcedownload, $options) {
+        $filearea, $qubaid, $slot, $args, $forcedownload, $fileoptions) {
     global $USER, $DB, $CFG;
 
     $quba = question_engine::load_questions_usage_by_activity($qubaid);
@@ -256,7 +256,7 @@ function question_preview_question_pluginfile($course, $context, $component,
         send_file_not_found();
     }
 
-    send_stored_file($file, 0, 0, $forcedownload, $options);
+    send_stored_file($file, 0, 0, $forcedownload, $fileoptions);
 }
 
 /**