From e7e64dc580740ff671b37f99685b197d16afdf9e Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Fri, 13 Feb 2009 05:02:46 +0100 Subject: [PATCH] [svn r18487] FS#2867 - FCKEditor: Cleaning obsolete settings for the online editor in the Tests tool. --- main/exercice/exercise.class.php | 6 +----- main/exercice/exercise_show.php | 5 +---- main/exercice/feedback.php | 5 ----- main/exercice/multiple_answer.class.php | 7 +------ main/exercice/question.class.php | 10 ++-------- main/exercice/unique_answer.class.php | 7 ++----- 6 files changed, 7 insertions(+), 33 deletions(-) diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index 7994348424..9ae262f7b3 100644 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -25,7 +25,7 @@ * Exercise class: This class allows to instantiate an object of type Exercise * @package dokeos.exercise * @author Olivier Brouckaert -* @version $Id: exercise.class.php 18476 2009-02-12 20:44:00Z herodoto $ +* @version $Id: exercise.class.php 18487 2009-02-13 04:02:46Z ivantcholakov $ */ @@ -821,10 +821,6 @@ class Exercise $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '200px'; $fck_attribute['ToolbarSet'] = 'TestDescription'; - - $fck_attribute['Config']['InDocument'] = false; - $fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/'; - //$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document/'; $form -> addElement ('html_editor', 'exerciseDescription', get_lang('ExerciseDescription')); diff --git a/main/exercice/exercise_show.php b/main/exercice/exercise_show.php index 35636df85b..a760818314 100644 --- a/main/exercice/exercise_show.php +++ b/main/exercice/exercise_show.php @@ -905,9 +905,6 @@ $result =api_sql_query($query, __FILE__, __LINE__); $fck_attribute['Width'] = '400'; $fck_attribute['Height'] = '150'; $fck_attribute['ToolbarSet'] = 'CommentAnswers'; - $fck_attribute['Config']['IMUploadPath'] = 'upload/test/'; - $fck_attribute['Config']['InDocument'] = false; - $fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/'; $$questionId = new FormValidator('frmcomments'.$questionId,'post',''); $renderer =& $$questionId->defaultRenderer(); @@ -1054,4 +1051,4 @@ if ($origin != 'learnpath') echo ''."\n"; echo ''; } -?> \ No newline at end of file +?> diff --git a/main/exercice/feedback.php b/main/exercice/feedback.php index 0e01051e69..315c24a50e 100644 --- a/main/exercice/feedback.php +++ b/main/exercice/feedback.php @@ -64,11 +64,6 @@ Display::display_header($nameTools,"Exercise"); $fck_attribute['Width'] = '600'; $fck_attribute['Height'] = '200'; $fck_attribute['ToolbarSet'] = 'Small'; //TODO: check where run? for customize buttons bar - $fck_attribute['Config']['IMUploadPath'] = 'upload/test/'; - $fck_attribute['Config']['InDocument'] = false; - $fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/'; - - $form = new FormValidator('feedbackform','post',api_get_self()."?modifyQuestion=".$modifyQuestion."&newQuestion=".$newQuestion); $obj_registration_form = new HTML_QuickForm('frmRegistration', 'POST'); diff --git a/main/exercice/multiple_answer.class.php b/main/exercice/multiple_answer.class.php index 3d0a463eca..2853885b58 100644 --- a/main/exercice/multiple_answer.class.php +++ b/main/exercice/multiple_answer.class.php @@ -70,11 +70,6 @@ class MultipleAnswer extends Question { $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '100px'; $fck_attribute['ToolbarSet'] = 'Answer'; - $fck_attribute['Config']['IMUploadPath'] = 'upload/test/'; - $fck_attribute['Config']['FlashUploadPath'] = 'upload/test/'; - - $fck_attribute['Config']['InDocument'] = false; - $fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/'; $fck_attribute['Config']['ToolbarStartExpanded']='false'; @@ -214,4 +209,4 @@ class MultipleAnswer extends Question { } endif; -?> \ No newline at end of file +?> diff --git a/main/exercice/question.class.php b/main/exercice/question.class.php index 31acb91cda..2d057122c5 100644 --- a/main/exercice/question.class.php +++ b/main/exercice/question.class.php @@ -1,4 +1,4 @@ - \ No newline at end of file +?>