]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12369 - get_actual_response should not truncate the student's response. Merged...
authortjhunt <tjhunt>
Wed, 28 Nov 2007 12:45:57 +0000 (12:45 +0000)
committertjhunt <tjhunt>
Wed, 28 Nov 2007 12:45:57 +0000 (12:45 +0000)
question/type/questiontype.php

index 3ff567597d6f192041c37da54d6bedf07dc32f24..9807d7351f09113165f80ef415a828569b056768 100644 (file)
@@ -686,10 +686,8 @@ class default_questiontype {
     */
     // ULPGC ecastro
     function get_actual_response($question, $state) {
-       // change length to truncate responses here if you want
-       $lmax = 40;
        if (!empty($state->responses)) {
-           $responses[] = shorten_text(stripslashes($state->responses['']), 45);
+           $responses[] = stripslashes($state->responses['']);
        } else {
            $responses[] = '';
        }