diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php
index <HASH>..<HASH> 100644
--- a/mod/quiz/locallib.php
+++ b/mod/quiz/locallib.php
@@ -2253,6 +2253,8 @@ function default_export_filename($course,$category) {
 */
 function get_questions_category( $category ) {
 
+    global $QUIZ_QTYPES;
+
     // questions will be added to an array
     $qresults = array();
 
@@ -2261,7 +2263,8 @@ function get_questions_category( $category ) {
 
         // iterate through questions, getting stuff we need
         foreach($questions as $question) {
-            $new_question = get_question_data( $question );
+            $questiontype = $QUIZ_QTYPES[$question->qtype];
+            $new_question = $questiontype->get_question_options( $question );
             $qresults[] = $new_question;
         }
     }
@@ -2269,6 +2272,8 @@ function get_questions_category( $category ) {
     return $qresults;
 }
 
+
+
 /**
 * Get question data for export
 *
Now calls get_question_option() in appropriate question_type to get question
objects for quiz export. Bad news is that format is different, so all export
classes will need modifying. Will remove old code when complete.