Permalink
Browse files

MDL-30760 question engine: fix (one more, hope last) regression

  • Loading branch information...
1 parent 66a0a58 commit ee3e8369e28bb2913eb40cd70056594b96c73e8a @stronk7 stronk7 committed Dec 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/engine/upgrade/upgradelib.php
@@ -245,9 +245,9 @@ public function save_usage($preferredbehaviour, $attempt, $qas, $quizlayout) {
$qa = $qas[$questionid];
$qa->questionusageid = $attempt->uniqueid;
$qa->slot = $i;
- if (textlib::strlen($qa->questionsummary) > question_bank::MAX_SUMMARY_LENGTH) {
+ if (textlib_get_instance()->strlen($qa->questionsummary) > question_bank::MAX_SUMMARY_LENGTH) {
// It seems some people write very long quesions! MDL-30760
- $qa->questionsummary = textlib::substr($qa->questionsummary,
+ $qa->questionsummary = textlib_get_instance()->substr($qa->questionsummary,
0, question_bank::MAX_SUMMARY_LENGTH - 3) . '...';
}
$this->insert_record('question_attempts', $qa);

0 comments on commit ee3e836

Please sign in to comment.