Commit 9e5d41ee authored by David Monllaó's avatar David Monllaó
Browse files

Merge branch 'MDL-64391_master' of git://github.com/vmdef/moodle

parents 67d490b6 b01c4194
......@@ -122,7 +122,8 @@ class courses extends \core_analytics\local\analyser\by_course {
* @return array array(string, \renderable)
*/
public function sample_description($sampleid, $contextid, $sampledata) {
$description = format_string($sampledata['course']->fullname, true, array('context' => $sampledata['context']));
$description = format_string(
get_course_display_name_for_list($sampledata['course']), true, array('context' => $sampledata['context']));
$courseimage = new \pix_icon('i/course', get_string('course'));
return array($description, $courseimage);
}
......
......@@ -131,7 +131,8 @@ class site_courses extends \core_analytics\local\analyser\sitewide {
* @return array array(string, \renderable)
*/
public function sample_description($sampleid, $contextid, $sampledata) {
$description = format_string($sampledata['course']->fullname, true, array('context' => $sampledata['context']));
$description = format_string(
get_course_display_name_for_list($sampledata['course']), true, array('context' => $sampledata['context']));
$courseimage = new \pix_icon('i/course', get_string('course'));
return array($description, $courseimage);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment