Skip to content

Commit

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

Please sign in to comment.