MDL-33426 Completion: Multilang activity names wrong in alt/title

This commit is contained in:
sam marshall 2012-06-13 16:45:42 +01:00 committed by Eloy Lafuente (stronk7)
parent 3e1648723f
commit a5f68fb2c2
2 changed files with 7 additions and 6 deletions

View file

@ -386,12 +386,13 @@ foreach($progress as $user) {
($activity->completion==COMPLETION_TRACKING_AUTOMATIC ? 'auto' : 'manual').
'-'.$completiontype;
$modcontext = context_module::instance($activity->id);
$describe = get_string('completion-' . $completiontype, 'completion');
$a=new StdClass;
$a->state=$describe;
$a->date=$date;
$a->user=fullname($user);
$a->activity=strip_tags($activity->name);
$a->activity = format_string($activity->name, true, array('context' => $modcontext));
$fulldescribe=get_string('progress-title','completion',$a);
if ($csv) {