From 7cfc54b918ecf65ece424081b91c7ec6fe2d847e Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 14 Apr 2005 22:37:43 +0000 Subject: [PATCH] Now user reports support filterall. Bug 2930 fixed too. (http://moodle.org/bugs/bug.php?op=show&bugid=2930) --- mod/choice/lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 3f0a96a1e14..55acee6e8ea 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -28,7 +28,7 @@ $CHOICE_DISPLAY = array (CHOICE_DISPLAY_HORIZONTAL => get_string('displayhoriz function choice_user_outline($course, $user, $mod, $choice) { if ($answer = get_record('choice_answers', 'choiceid', $choice->id, 'userid', $user->id)) { - $result->info = "'".choice_get_option_text($choice, $answer->optionid)."'"; + $result->info = "'".format_string(choice_get_option_text($choice, $answer->optionid))."'"; $result->time = $answer->timemodified; return $result; } @@ -38,9 +38,9 @@ function choice_user_outline($course, $user, $mod, $choice) { function choice_user_complete($course, $user, $mod, $choice) { if ($answer = get_record('choice_answers', "choiceid", $choice->id, "userid", $user->id)) { - $result->info = "'".choice_get_option_text($choice, $answer->optionid)."'"; + $result->info = "'".format_string(choice_get_option_text($choice, $answer->optionid))."'"; $result->time = $answer->timemodified; - echo get_string("answered", "choice").": $result->info , last updated ".userdate($result->time); + echo get_string("answered", "choice").": $result->info. ".get_string("updated", '', userdate($result->time)); } else { print_string("notanswered", "choice"); }