Permalink
Browse files

Merge branch 'MDL-38355_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
2 parents 07c65a6 + e421b15 commit a0b12848a47fec2cc958993dae726213d8d0b717 @stronk7 stronk7 committed Mar 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/multianswer/renderer.php
@@ -189,9 +189,9 @@ public function subquestion(question_attempt $qa, question_display_options $opti
}
// Work out a good input field size.
- $size = max(1, strlen(trim($response)) + 1);
+ $size = max(1, textlib::strlen(trim($response)) + 1);
foreach ($subq->answers as $ans) {
- $size = max($size, strlen(trim($ans->answer)));
+ $size = max($size, textlib::strlen(trim($ans->answer)));
}
$size = min(60, round($size + rand(0, $size*0.15)));
// The rand bit is to make guessing harder.

0 comments on commit a0b1284

Please sign in to comment.