Added question type that is used if a question of unknown type is encountered.

Also removed some of the unnecessary calls to name()
This commit is contained in:
gustav_delius
2006-03-24 21:21:59 +00:00
parent 5c2447494d
commit 4eda4eecbd
11 changed files with 258 additions and 13 deletions
+4 -1
View File
@@ -52,6 +52,9 @@
}
$qtype = $question->qtype;
if (!isset($QTYPES[$qtype])) {
$qtype = 'missingtype';
}
} else if ($category) { // only for creating new questions
if (! $category = get_record("question_categories", "id", $category)) {
@@ -346,7 +349,7 @@
echo '<br />';
print_simple_box_start('center');
require_once('type/'.$QTYPES[$qtype]->name().'/editquestion.php');
require_once('type/'.$qtype.'/editquestion.php');
print_simple_box_end();
if ($usehtmleditor) {