From dbb8902e51749715aaeb474dc3dea7d7d039b81f Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Thu, 6 Nov 2008 17:29:07 +0000 Subject: [PATCH] MDL-17153: Completion system - minor text change for accessibility --- course/report/progress/index.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/course/report/progress/index.php b/course/report/progress/index.php index c464da60814..7661b81390d 100644 --- a/course/report/progress/index.php +++ b/course/report/progress/index.php @@ -229,17 +229,18 @@ foreach($progress->users as $user) { } // Work out how it corresponds to an icon - $completiontype= - ($activity->completion==COMPLETION_TRACKING_AUTOMATIC ? 'auto' : 'manual'). - '-'; switch($state) { - case COMPLETION_INCOMPLETE : $completiontype.='n'; break; - case COMPLETION_COMPLETE : $completiontype.='y'; break; - case COMPLETION_COMPLETE_PASS : $completiontype.='pass'; break; - case COMPLETION_COMPLETE_FAIL : $completiontype.='fail'; break; + case COMPLETION_INCOMPLETE : $completiontype='n'; break; + case COMPLETION_COMPLETE : $completiontype='y'; break; + case COMPLETION_COMPLETE_PASS : $completiontype='pass'; break; + case COMPLETION_COMPLETE_FAIL : $completiontype='fail'; break; } - $describe=get_string('completion-alt-'.$completiontype,'completion'); + $completionicon='completion-'. + ($activity->completion==COMPLETION_TRACKING_AUTOMATIC ? 'auto' : 'manual'). + '-'.$completiontype; + + $describe=get_string('completion-alt-auto-'.$completiontype,'completion'); $a=new StdClass; $a->state=$describe; $a->date=$date; @@ -251,7 +252,7 @@ foreach($progress->users as $user) { print $sep.csv_quote($describe).$sep.csv_quote($date); } else { print ''. - 'pixpath.'/i/'.$completionicon. '.gif" alt="'.$describe.'" title="'.$fulldescribe.'" />'; } }