Skip to content
Permalink
Browse files
Merge branch 'MDL-64391_35' of git://github.com/vmdef/moodle into MOO…
…DLE_35_STABLE
  • Loading branch information
David Monllaó committed Feb 11, 2019
2 parents 571b22a + cf1f48b commit 5719590cb103d6d5730fb7ab0a91ecfc5f369a8b
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 5719590

Please sign in to comment.