From 095c40469a548d7cbc020b2fb4712afb1a88a4c0 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 29 Nov 2007 04:31:14 +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 ece45f46adf..fc144b5dc2c 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; }