Skip to content
Permalink
Browse files
Merge branch 'MDL-64391_master' of git://github.com/vmdef/moodle
  • Loading branch information
David Monllaó committed Feb 11, 2019
2 parents 67d490b + b01c419 commit 9e5d41ee1d14cf430b02a84657b7b5fab5ad92fa
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib/classes/analytics/analyser/courses.php
  2. +2 −1 lib/classes/analytics/analyser/site_courses.php
@@ -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);
}
@@ -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);
}

0 comments on commit 9e5d41e

Please sign in to comment.