MDL-26442 restore - missing new in qtype match exception
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 21 Feb 2011 01:01:03 +0000 (02:01 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 24 Feb 2011 01:24:18 +0000 (02:24 +0100)
question/type/match/backup/moodle2/restore_qtype_match_plugin.class.php

index 21e2870..eaf3539 100644 (file)
@@ -115,7 +115,7 @@ class restore_qtype_match_plugin extends restore_qtype_plugin {
                 $this->set_mapping('question_match_sub', $oldid, $sub->id);
             // Something went really wrong, cannot map subquestion for one match question
             } else {
-                throw restore_step_exception('error_question_match_sub_missing_in_db', $data);
+                throw new restore_step_exception('error_question_match_sub_missing_in_db', $data);
             }
         }
     }