From 1aba26fe5b61b9a31ee93d536dcc35b59c8b9d0a Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 14 Oct 2010 16:40:01 +0200 Subject: [PATCH] Function modified in order to accept exercise_result.php calls --- main/inc/lib/exercise_show_functions.lib.php | 37 ++++++++++++++++---- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/main/inc/lib/exercise_show_functions.lib.php b/main/inc/lib/exercise_show_functions.lib.php index 8d9215c421..aa152362f5 100755 --- a/main/inc/lib/exercise_show_functions.lib.php +++ b/main/inc/lib/exercise_show_functions.lib.php @@ -31,8 +31,11 @@ class ExerciseShowFunctions { * @return void */ - function display_fill_in_blanks_answer($answer,$id,$questionId) - { global $feedback_type; + function display_fill_in_blanks_answer($answer,$id,$questionId) { + global $feedback_type; + if (empty($id)) { + echo ''. nl2br(Security::remove_XSS($answer,COURSEMANAGERLOWSECURITY)).''; + } else { ?> @@ -50,6 +53,7 @@ class ExerciseShowFunctions { + + + + + + + + + + +   + + + + - - - $mycharset)); } } + + + + + } \ No newline at end of file