Merge branch 'MDL-28508' of git://github.com/timhunt/moodle

This commit is contained in:
Sam Hemelryk 2011-08-02 17:48:02 +08:00
commit 58e67f7f1a

View File

@ -96,8 +96,8 @@ class qformat_aiken extends qformat_default {
} else { } else {
// Must be the first line of a new question, since no recognised prefix. // Must be the first line of a new question, since no recognised prefix.
$question->qtype = MULTICHOICE; $question->qtype = MULTICHOICE;
$question->name = htmlspecialchars(substr($nowline, 0, 50)); $question->name = shorten_text(s($nowline), 50);
$question->questiontext = htmlspecialchars($nowline); $question->questiontext = s($nowline);
$question->single = 1; $question->single = 1;
$question->feedback[] = ''; $question->feedback[] = '';
} }