gift import: MDL-18390 better way to get the question type name.

This commit is contained in:
tjhunt 2009-03-12 06:00:55 +00:00
parent f23b9a947f
commit c32f2e5c64

View File

@ -528,6 +528,7 @@ function repchar( $text, $format=0 ) {
}
function writequestion( $question ) {
global $QTYPES;
// turns question into string
// question reflects database fields for general question and specific to type
@ -647,7 +648,7 @@ function writequestion( $question ) {
}
else {
$expout .= "Question type $question->qtype is not supported\n";
notify( get_string('nohandler','qformat_gift',get_string($question->qtype,'quiz') ) );
notify( get_string('nohandler', 'qformat_gift', $QTYPES[$question->qtype]->local_name()) );
}
}
// add empty line to delimit questions