|
@@ 462-470 (lines=9) @@
|
| 459 |
|
$temp[] = $title = Security::remove_XSS($title); |
| 460 |
|
$temp[] = Security::remove_XSS(learnpathItem::humanize_status($lesson_status, false, $type)); |
| 461 |
|
|
| 462 |
|
if ($row['item_type'] == 'quiz') { |
| 463 |
|
if (!$is_allowed_to_edit && $result_disabled_ext_all) { |
| 464 |
|
$temp[] = '/'; |
| 465 |
|
} else { |
| 466 |
|
$temp[] = ($score == 0 ? '0/' . $maxscore : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1))); |
| 467 |
|
} |
| 468 |
|
} else { |
| 469 |
|
$temp[] = ($score == 0 ? '/' : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1))); |
| 470 |
|
} |
| 471 |
|
$temp[] = $time; |
| 472 |
|
$csv_content[] = $temp; |
| 473 |
|
} |
|
@@ 815-823 (lines=9) @@
|
| 812 |
|
$temp[] = api_html_entity_decode($title, ENT_QUOTES); |
| 813 |
|
$temp[] = api_html_entity_decode($lesson_status, ENT_QUOTES); |
| 814 |
|
|
| 815 |
|
if ($row['item_type'] == 'quiz') { |
| 816 |
|
if (!$is_allowed_to_edit && $result_disabled_ext_all) { |
| 817 |
|
$temp[] = '/'; |
| 818 |
|
} else { |
| 819 |
|
$temp[] = ($score == 0 ? '0/' . $maxscore : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1))); |
| 820 |
|
} |
| 821 |
|
} else { |
| 822 |
|
$temp[] = ($score == 0 ? '/' : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1))); |
| 823 |
|
} |
| 824 |
|
$temp[] = $time; |
| 825 |
|
$csv_content[] = $temp; |
| 826 |
|
} |