From 274d3ca04464223012ac2ebfe0e2def6ff690d6d Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 12 Dec 2012 15:50:38 +0100 Subject: [PATCH] Allowing exercise order for 1.10 --- main/exercice/exercice.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/exercice/exercice.php b/main/exercice/exercice.php index cc85921984..44e1420fcb 100644 --- a/main/exercice/exercice.php +++ b/main/exercice/exercice.php @@ -384,6 +384,7 @@ if ($is_allowedToEdit && $origin != 'learnpath') { if ($is_allowedToEdit) { echo ''; // closing the actions div + echo '
'; } 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; }