Allowing exercise order for 1.10

skala
Julio Montoya 13 years ago
parent 032be5eb3e
commit 274d3ca044
  1. 6
      main/exercice/exercice.php

@ -384,6 +384,7 @@ if ($is_allowedToEdit && $origin != 'learnpath') {
if ($is_allowedToEdit) {
echo '</div>'; // closing the actions div
echo '<div id="message"></div>';
}
if ($total > $limit) {
@ -405,15 +406,14 @@ if ($total > $limit) {
}
$i =1;
$lis = '';
$online_icon = Display::return_icon('online.png', get_lang('Visible'),array('width'=>'12px'));
$offline_icon = Display::return_icon('offline.png',get_lang('Invisible'),array('width'=>'12px'));
$exercise_list = array();
$exercise_obj = new Exercise();
//$list_ordered = $exercise_obj->get_exercise_list_ordered();
$list_ordered = null;
$list_ordered = $exercise_obj->get_exercise_list_ordered();
while ($row = Database :: fetch_array($result,'ASSOC')) {
$exercise_list[$row['id']] = $row;
}

Loading…
Cancel
Save