MDL-27799 question bank: remove last traces of qtype constants.

Using consants to refer to plugin names is crazy. The whole point of
plugins is that you can install more, hence the list of constants will
never be complete.
This commit is contained in:
Tim Hunt
2012-08-30 13:15:52 +01:00
parent e51861e0ea
commit e231a3ffa2
12 changed files with 185 additions and 142 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ class qformat_learnwise extends qformat_default {
}
$question = $this->defaultquestion();
$question->qtype = MULTICHOICE;
$question->qtype = 'multichoice';
$question->name = substr($questiontext, 0, 30);
if (strlen($questiontext) > 30) {
$question->name .= '...';