Merge branch 'MDL-73332-311' of https://github.com/martygilbert/moodle into MOODLE_311_STABLE

This commit is contained in:
Víctor Déniz
2022-07-20 19:56:07 +01:00
@@ -55,8 +55,9 @@ class mustache_shorten_text_helper {
$length = trim($length);
$text = trim($text);
// Allow mustache tags in the text.
// Allow mustache tags in the length and text.
$text = $helper->render($text);
$length = $helper->render($length);
return shorten_text($text, $length);
}