mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
Merge branch 'MDL-81359-main' of https://github.com/sammarshallou/moodle
This commit is contained in:
commit
744c1c8a5a
@ -209,7 +209,7 @@ class availability implements named_templatable, renderable {
|
||||
$text = info::format_info($availabilityinfo, $course);
|
||||
$data = ['text' => $text];
|
||||
|
||||
if (strlen(html_to_text($text)) > self::AVAILABILITY_EXCERPT_MAXSIZE) {
|
||||
if (strlen(html_to_text($text, 0, false)) > self::AVAILABILITY_EXCERPT_MAXSIZE) {
|
||||
$data['excerpt'] = shorten_text($text, self::AVAILABILITY_EXCERPT_MAXSIZE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user