mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-33426 Completion: Multilang activity names wrong in alt/title
This commit is contained in:
parent
3e1648723f
commit
a5f68fb2c2
2 changed files with 7 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue