Merge branch 'MDL-65549_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Adrian Greeve 2019-05-23 10:09:09 +08:00
commit a8d20b0fa9

View file

@ -181,7 +181,7 @@ class models_list implements \renderable, \templatable {
if ($contextid == SYSCONTEXTID) { if ($contextid == SYSCONTEXTID) {
$contextname = get_string('allpredictions', 'tool_analytics'); $contextname = get_string('allpredictions', 'tool_analytics');
} else { } else {
$contextname = shorten_text($context->get_context_name(true, true), 90); $contextname = shorten_text($context->get_context_name(false, true), 40);
} }
$predictioncontexts[$contextid] = $contextname; $predictioncontexts[$contextid] = $contextname;
} }