Skip to content
Snippets Groups Projects
Commit 14adcd4c authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

use API of Exercise class, fixes #290

parent 06ff126e
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@
<tbody>
<? foreach ($exercises as $exercise): ?>
<? $exercise_obj = Exercise::buildExisting($exercise) ?>
<? $course_id = $exercise['context'] === 'course' ? $exercise['course_id'] : null ?>
<tr>
<td>
......@@ -71,9 +72,7 @@
</td>
<td>
<? if (isset($exercise_types[$exercise['type']])): ?>
<?= htmlReady($exercise_types[$exercise['type']]['name']) ?>
<? endif ?>
<?= htmlReady($exercise_obj->getTypeName()) ?>
</td>
<td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment