From: Chris S. <san...@us...> - 2005-09-15 10:35:04
|
Update of /cvsroot/stack/stack-1-0/lang/en/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26546/lang/en/doc Modified Files: author_testsuite.php Log Message: Index: author_testsuite.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/lang/en/doc/author_testsuite.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** author_testsuite.php 1 Sep 2005 08:13:57 -0000 1.10 --- author_testsuite.php 15 Sep 2005 10:34:56 -0000 1.11 *************** *** 236,240 **** // Now perform the tests, and display the results. ! $disp = 'LaTeX'; $errors = array(); $AnsTest = ''; --- 236,241 ---- // Now perform the tests, and display the results. ! $options = stack_options_set(NULL); ! $options['Display']='LaTeX'; $errors = array(); $AnsTest = ''; *************** *** 286,290 **** // (1) Apply the AnswerTest ! $this_attempt = stack_apply_answertest($ts['SAns'],$ts['TAns'],$ts['AnswerTest'],$ts['AnsTestOpt'],$disp,$err); // (2) Process $this_attempt --- 287,291 ---- // (1) Apply the AnswerTest ! $this_attempt = stack_apply_answertest($ts['SAns'],$ts['TAns'],$ts['AnswerTest'],$ts['AnsTestOpt'],$options,$err); // (2) Process $this_attempt *************** *** 309,313 **** if (''!=$dispans) { $locs = array(); ! $dispans = stack_castext_to_display('$$'.$dispans.'$$', $locs , $disp,$errors); // Remove <br clear="all" /> from the beginning. if ('<br clear="all" />'==substr($dispans,0,18)) { --- 310,314 ---- if (''!=$dispans) { $locs = array(); ! $dispans = stack_castext_to_display('$$'.$dispans.'$$', $locs , $options['Display'] ,$errors); // Remove <br clear="all" /> from the beginning. if ('<br clear="all" />'==substr($dispans,0,18)) { *************** *** 319,323 **** if (array_key_exists('FeedBack',$this_attempt)) { $locs = array(); ! $feedback = stack_castext_to_display($this_attempt['FeedBack'], $locs , $disp,$errors); } --- 320,324 ---- if (array_key_exists('FeedBack',$this_attempt)) { $locs = array(); ! $feedback = stack_castext_to_display($this_attempt['FeedBack'], $locs , $options['Display'] ,$errors); } |