MDL-12346, lesson module GIFT import fails

This commit is contained in:
toyomoyo 2007-11-29 04:31:57 +00:00
parent ec28a9bf8b
commit 3ea69b8d43

View File

@ -228,7 +228,8 @@ class qformat_gift extends qformat_default {
// give plugins first try
// plugins must promise not to intercept standard qtypes
if ($try_question = $this->try_importing_using_qtypes( $lines, $question, $answertext )) {
// MDL-12346, this could be called from lesson mod which has its own base class =(
if (method_exists($this, 'try_importing_using_qtypes') && ($try_question = $this->try_importing_using_qtypes( $lines, $question, $answertext ))) {
return $try_question;
}