From 53a01335b3333e5cb03f92bb4506c48563c75866 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 5 May 2009 19:31:30 +0200 Subject: [PATCH] [svn r20342] Minor - Fixing SVN#20341 --- main/exercice/fill_blanks.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/exercice/fill_blanks.class.php b/main/exercice/fill_blanks.class.php index 75e66df91a..200570d673 100644 --- a/main/exercice/fill_blanks.class.php +++ b/main/exercice/fill_blanks.class.php @@ -157,9 +157,7 @@ class FillBlanks extends Question // answer $form -> addElement ('html', '

'.get_lang('TypeTextBelow').', '.get_lang('And').' '.get_lang('UseTagForBlank').'
'); $form -> addElement ('html_editor', 'answer','','id="answer" cols="122" rows="6" onkeyup="updateBlanks(this)"'); - $form -> addElement ('textarea', 'answer',get_lang('Answer'),'id="answer" cols="65" rows="6" onkeyup="updateBlanks(this)"'); - - + $form -> addRule ('answer',get_lang('GiveText'),'required'); $form -> addRule ('answer',get_lang('DefineBlanks'),'regex','/\[.*\]/');