MDL-12369 - get_actual_response should not truncate the student's response.

This commit is contained in:
tjhunt
2007-11-28 12:45:42 +00:00
parent a863e9a119
commit 49aeee2bf6
+1 -3
View 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[] = '';
}