From 3ea69b8d43ed4a591e387c149f85a8be9e9133b4 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 29 Nov 2007 04:31:57 +0000 Subject: [PATCH] MDL-12346, lesson module GIFT import fails --- question/format/gift/format.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/question/format/gift/format.php b/question/format/gift/format.php index ece45f46ad..fc144b5dc2 100755 --- a/question/format/gift/format.php +++ b/question/format/gift/format.php @@ -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; } -- 2.39.5