Sorted hard coded string.

This commit is contained in:
thepurpleblob
2005-05-17 14:12:42 +00:00
parent eaf4b379a9
commit b5abaacf51
+4 -2
View File
@@ -245,7 +245,8 @@ function readquestions($lines) {
// iterate through questions
foreach ($xml['quiz']['#']['question'] as $question) {
$question_type = $question['@']['type'];
echo "<p>question type = $question_type</p>";
$questiontype = get_string( 'questiontype','quiz',$question_type );
echo "<p>$questiontype</p>";
if ($question_type=='multichoice') {
$qo = $this->import_multichoice( $question );
@@ -260,7 +261,8 @@ function readquestions($lines) {
$qo = $this->import_numerical( $question );
}
else {
echo "<p>Question type $question_type not currently supported for xml import</p>";
$notsupported = get_string( 'xmlnotsupported','quiz',$question_type );
echo "<p>$notsupported</p>";
$qo = null;
}