diff --git a/main/newscorm/lp_list.php b/main/newscorm/lp_list.php index 88b25682c7..1cebc6a21f 100644 --- a/main/newscorm/lp_list.php +++ b/main/newscorm/lp_list.php @@ -41,6 +41,7 @@ if(empty($lp_controller_touched) || $lp_controller_touched!=1){ require_once('back_compat.inc.php'); $courseDir = api_get_course_path().'/scorm'; $baseWordDir = $courseDir; +$display_progress_bar = true; require_once('learnpathList.class.php'); require_once('learnpath.class.php'); @@ -185,9 +186,14 @@ if (is_array($flat_list)) $dsp_edit = ''; $dsp_delete = ''; $dsp_visible = ''; - //$dsp_progress = ''.learnpath::get_progress_bar('%',learnpath::get_db_progress($id,api_get_user_id()),'%').''; - //temporarily removed progress bar because of display problems - $dsp_progress = ''.learnpath::get_db_progress($id,api_get_user_id(),'both').''; + if($display_progress_bar) + { + $dsp_progress = ''.learnpath::get_progress_bar('%',learnpath::get_db_progress($id,api_get_user_id()),'').''; + } + else + { + $dsp_progress = ''.learnpath::get_db_progress($id,api_get_user_id(),'both').''; + } if(api_is_allowed_to_edit()) { $dsp_desc = ''.$details['lp_maker'].'    '.$details['lp_proximity'].'    '.$details['lp_encoding'].'  '."\n";