|
|
|
|
@ -289,11 +289,11 @@ function aiken_parse_file(&$exercise_info, $exercisePath, $file, $questionFile) |
|
|
|
|
$new_question = true; |
|
|
|
|
} else { |
|
|
|
|
if (empty($exercise_info['question'][$question_index]['title'])) { |
|
|
|
|
if (strlen($info) < 40) { |
|
|
|
|
if (strlen($info) < 100) { |
|
|
|
|
$exercise_info['question'][$question_index]['title'] = $info; |
|
|
|
|
} else { |
|
|
|
|
//Question itself (use a 40-chars long title and a larger description) |
|
|
|
|
$exercise_info['question'][$question_index]['title'] = trim(substr($info,0,40)).'...'; |
|
|
|
|
//Question itself (use a 100-chars long title and a larger description) |
|
|
|
|
$exercise_info['question'][$question_index]['title'] = trim(substr($info, 0, 100)) . '...'; |
|
|
|
|
$exercise_info['question'][$question_index]['description'] = $info; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
|