From 2ed35d1b3b56605f58b302b98a228b982d014fc1 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 1 Mar 2012 18:21:27 +0100 Subject: [PATCH] Minor - Cleaning exercise form when search option is on --- main/exercice/exercise.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index a078508d3c..ca108392cf 100644 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -1057,11 +1057,11 @@ class Exercise { if (api_get_setting('search_enabled') === 'true') { require_once api_get_path(LIBRARY_PATH) . 'specific_fields_manager.lib.php'; - $form->addElement ('checkbox', 'index_document','', get_lang('SearchFeatureDoIndexDocument')); - $form->addElement ('html','
'); - $form->addElement ('html', '
'. get_lang('SearchFeatureDocumentLanguage') .'
'); - $form->addElement ('html', '
'. api_get_languages_combo() .'
'); - $form->addElement ('html','
'); + $form->addElement ('checkbox', 'index_document','', get_lang('SearchFeatureDoIndexDocument')); + //$form->addElement ('html', '
'. get_lang('SearchFeatureDocumentLanguage') .'
'); + //$form->addElement ('html', '
'. api_get_languages_combo() .'
'); + $form->addElement ('select_language', 'language', get_lang('SearchFeatureDocumentLanguage')); + //$form->addElement ('html','
'); $specific_fields = get_specific_field_list(); @@ -1077,7 +1077,7 @@ class Exercise { $defaults[$specific_field['code']] = implode(', ', $arr_str_values); } } - $form->addElement ('html','
'); + //$form->addElement ('html',''); } $form->addElement('html',''); //End advanced setting