Merge branch 'MDL-55932-31' of https://github.com/eberhardt/moodle into MOODLE_31_STABLE

This commit is contained in:
Andrew Nicols
2016-09-19 08:33:37 +08:00
+1 -1
View File
@@ -127,7 +127,7 @@ class item implements \renderable, \templatable {
$title = $this->title;
if (!$title) {
$title = strip_tags($this->description);
$title = core_text::substr($title, 0, 20) . '...';
$title = \core_text::substr($title, 0, 20) . '...';
}
// Allow the renderer to format the title and description.