Minor - updated code format (removed debug logging)

1.9.x
Yannick Warnier 12 years ago
parent 324e52c9f5
commit 11e16f9ffd
  1. 4
      main/exercice/export/aiken/aiken_import.inc.php

@ -217,7 +217,6 @@ function parse_file($exercisePath, $file, $questionFile) {
} elseif (preg_match('/^ANSWER_EXPLANATION:\s?(.*)/', $info, $matches)) { } elseif (preg_match('/^ANSWER_EXPLANATION:\s?(.*)/', $info, $matches)) {
//Comment of correct answer //Comment of correct answer
$correct_answer_index = array_search($matches[1], $answers_array); $correct_answer_index = array_search($matches[1], $answers_array);
error_log($matches[1]);
$exercise_info['question'][$question_index]['answer'][$correct_answer_index]['feedback'] = $matches[1]; $exercise_info['question'][$question_index]['answer'][$correct_answer_index]['feedback'] = $matches[1];
} elseif (preg_match('/^TAGS:\s?([A-Z])\s?/', $info, $matches)) { } elseif (preg_match('/^TAGS:\s?([A-Z])\s?/', $info, $matches)) {
//TAGS for chamilo >= 1.10 //TAGS for chamilo >= 1.10
@ -237,8 +236,5 @@ function parse_file($exercisePath, $file, $questionFile) {
foreach ($exercise_info['question'] as $key => $question) { foreach ($exercise_info['question'] as $key => $question) {
$exercise_info['question'][$key]['weighting'][current(array_keys($exercise_info['question'][$key]['weighting']))] = 20 / $total_questions; $exercise_info['question'][$key]['weighting'][current(array_keys($exercise_info['question'][$key]['weighting']))] = 20 / $total_questions;
} }
echo '<pre>';
print_r($exercise_info);
echo '</pre>';
return true; return true;
} }
Loading…
Cancel
Save