MDL-18390:

Now looks up the questiontype name correctly.
This commit is contained in:
thepurpleblob
2009-03-16 13:43:19 +00:00
parent d3c7da5741
commit 7d8f12b630
+4 -1
View File
@@ -531,6 +531,8 @@ function writequestion( $question ) {
// turns question into string
// question reflects database fields for general question and specific to type
global $QTYPES;
// initial string;
$expout = "";
@@ -647,7 +649,8 @@ function writequestion( $question ) {
}
else {
$expout .= "// $question->qtype is not supported by the GIFT format\n";
notify( get_string('nohandler','qformat_gift',get_string($question->qtype,'quiz') ) );
$menuname = $QTYPES[$question->qtype]->menu_name();
notify( get_string('nohandler','qformat_gift', $menuname ) );
}
}
// add empty line to delimit questions