Skip to content

Commit

Permalink
Fix 'core_text' inclusion issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jan 15, 2022
1 parent 03caa64 commit a111aa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Expand Up @@ -2,6 +2,7 @@ History
=============
Version 3.11.1.1 - TBR
=============================
1. Fix 'core_text' inclusion issue.

Version 3.11.1.0 - 14/01/2022
=============================
Expand Down
3 changes: 2 additions & 1 deletion classes/output/renderer.php
Expand Up @@ -31,6 +31,7 @@
defined('MOODLE_INTERNAL') || die();

use context_course;
use core_text;
use html_writer;
use moodle_url;

Expand Down Expand Up @@ -891,7 +892,7 @@ private function make_block_icon_topics($contextid, $sections, $course, $editing
if ($this->settings['showsectiontitlesummary'] == 2) {
$summary = strip_tags($thissection->summary);
$summary = str_replace(" ", ' ', $summary);
$summarylen = \core_text::strlen($summary);
$summarylen = core_text::strlen($summary);
if ($summarylen > 0) {
if ($this->settings['sectiontitlesummarymaxlength'] != 0) {
if ($summarylen > $this->settings['sectiontitlesummarymaxlength']) {
Expand Down

0 comments on commit a111aa6

Please sign in to comment.