Merge branch MDL-29187-master of git://github.com/samhemelryk/moodle
[moodle.git] / backup / util / ui / renderer.php
index 2f04bce..b8237b1 100644 (file)
@@ -523,7 +523,7 @@ class core_backup_renderer extends plugin_renderer_base {
                 }
                 $row->cells = array(
                     html_writer::empty_tag('input', array('type'=>'radio', 'name'=>'targetid', 'value'=>$course->id)),
-                    $course->shortname,
+                    format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))),
                     $course->fullname
                 );
                 $table->data[] = $row;
@@ -587,7 +587,7 @@ class core_backup_renderer extends plugin_renderer_base {
             }
             $row->cells = array(
                 html_writer::empty_tag('input', array('type'=>'radio', 'name'=>'importid', 'value'=>$course->id)),
-                $course->shortname,
+                format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))),
                 $course->fullname
             );
             $table->data[] = $row;