Browse Source

[svn r18487] FS#2867 - FCKEditor: Cleaning obsolete settings for the online editor in the Tests tool.

Ivan Tcholakov 16 years ago
parent
commit
e7e64dc580

+ 1 - 5
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'));		
 		

+ 1 - 4
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 '<script language="javascript" type="text/javascript">window.parent.API.void_save_asset('.$totalScore.','.$totalWeighting.');</script>'."\n";
 	echo '</body></html>';
 }
-?>
+?>

+ 0 - 5
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');

+ 1 - 6
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;
-?>
+?>

+ 2 - 8
main/exercice/question.class.php

@@ -1,4 +1,4 @@
-<?php // $Id: question.class.php 18476 2009-02-12 20:44:00Z herodoto $
+<?php // $Id: question.class.php 18487 2009-02-13 04:02:46Z ivantcholakov $
  
 /*
 ==============================================================================
@@ -28,7 +28,7 @@
 *	File containing the Question class.
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert
-* 	@version $Id: question.class.php 18476 2009-02-12 20:44:00Z herodoto $
+* 	@version $Id: question.class.php 18487 2009-02-13 04:02:46Z ivantcholakov $
 */
 
 
@@ -997,12 +997,6 @@ abstract class Question
 		$fck_attribute['Width'] = '100%';
 		$fck_attribute['Height'] = '300';
 		$fck_attribute['ToolbarSet'] = 'QuestionDescription';
-		$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/';
-				 
 		
 		if(is_array($fck_config)){
 			$fck_attribute = array_merge($fck_attribute,$fck_config);

+ 2 - 5
main/exercice/unique_answer.class.php

@@ -69,10 +69,7 @@ class UniqueAnswer extends Question {
 		$fck_attribute['Height'] = '125px';
 		
 		$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/';
+
 		// we collapse the fckeditor toolbar
 		$fck_attribute['Config']['ToolbarStartExpanded']='false';		
 		
@@ -374,4 +371,4 @@ class UniqueAnswer extends Question {
 	}
 }
 endif;
-?>
+?>