Skip to content

Commit

Permalink
Merge branch 'MDL-64391_master' of git://github.com/vmdef/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllaó committed Feb 11, 2019
2 parents 67d490b + b01c419 commit 9e5d41e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/classes/analytics/analyser/courses.php
Expand Up @@ -122,7 +122,8 @@ public function get_samples($sampleids) {
* @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);
}
Expand Down
3 changes: 2 additions & 1 deletion lib/classes/analytics/analyser/site_courses.php
Expand Up @@ -131,7 +131,8 @@ public function get_samples($sampleids) {
* @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);
}
Expand Down

0 comments on commit 9e5d41e

Please sign in to comment.