mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-12346, lesson module GIFT import fails
This commit is contained in:
parent
ec28a9bf8b
commit
3ea69b8d43
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user