From bc857c585fa30124649a201861424b7c5ca96ce1 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sat, 26 May 2007 23:53:39 +0200 Subject: [PATCH] [svn r12482] Fixed progress bar display --- main/newscorm/learnpath.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 22b6f16845..de7f93faa1 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -1895,19 +1895,20 @@ class learnpath { */ function get_progress_bar($mode='',$percentage=-1,$text_add='') { - if($this->debug>0){error_log('New LP - In learnpath::get_progress_bar()',0);} - if($percentage=='-1' OR $text_add==''){ + //if($this->debug>0){error_log('New LP - In learnpath::get_progress_bar()',0);} + if(is_object($this) && ($percentage=='-1' OR $text_add=='')){ list ($percentage, $text_add) = $this->get_progress_bar_text($mode); } $text = $percentage.$text_add; + $size = str_replace('%','',$percentage); $output = '' //.htmlentities(get_lang('ScormCompstatus'),ENT_QUOTES,'ISO-8859-1')."
" .'
' .'' - .'' + .'' .''; if($percentage <= 98){ - $output .= ''; + $output .= ''; }else{ $output .= ''; }