소스 검색

#6647 remove old and bugged code

Eric Marguin 11 년 전
부모
커밋
f461776a16
1개의 변경된 파일0개의 추가작업 그리고 27개의 파일을 삭제
  1. 0 27
      main/newscorm/learnpath_functions.inc.php

+ 0 - 27
main/newscorm/learnpath_functions.inc.php

@@ -1248,7 +1248,6 @@ function export_exercise($item_id) {
           <td>
           <table width='100%' cellpadding='4' cellspacing='2' border='0'>";
 
-    $exerciseType = 1; // So to list all questions in one page.
     $test .= $s;
 
     $i = 0;
@@ -1256,32 +1255,6 @@ function export_exercise($item_id) {
     foreach ($questionList as $questionId) {
         $i ++;
 
-        // For sequential exercises.
-        if ($exerciseType == 2) {
-            // If it is not the right question, goes to the next loop iteration.
-            if ($questionNum != $i) {
-                continue;
-            } else {
-                // if the user has already answered this question:
-                if (isset ($exerciseResult[$questionId])) {
-                    // Construction of the Question object.
-                    $objQuestionTmp = new Question();
-
-                    // Reads question informations.
-                    $objQuestionTmp->read($questionId);
-
-                    $questionName = $objQuestionTmp->selectTitle();
-
-                    // Destruction of the Question object.
-                    unset ($objQuestionTmp);
-
-                    $test .= '<tr><td>'.get_lang('AlreadyAnswered').' &quot;'.$questionName.'&quot;</td></tr>';
-
-                    break;
-                }
-            }
-        }
-
         echo $s = "<tr bgcolor='#e6e6e6'><td valign='top' colspan='2'>".get_lang('Question')." ";
         // Call the showQuestion() function from exercise.lib.php. This basically displays the question in a table.
         $test .= showQuestion($questionId, false, 'export', $i);