MDL-26442 restore - missing new in qtype match exception
[moodle.git] / 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);
             }
         }
     }