Skip to content

Commit

Permalink
�Fix core_text scope issue causing exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jun 13, 2019
1 parent 1350e64 commit 76c7074
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Version Information
===================
Version 3.6.0.5
1. Fix core_text scope issue causing exception.

Version 3.6.0.4
1. Use module templates as cannot override the Mustache engine with our own due to module locallib rendering
Expand Down
2 changes: 1 addition & 1 deletion classes/output/core_renderer_toolbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public function user_menu($user = null, $withlinks = null) {

// Role.
if (!empty($opts->metadata['asotherrole'])) {
$role = core_text::strtolower(preg_replace('#[ ]+#', '-', trim($opts->metadata['rolename'])));
$role = \core_text::strtolower(preg_replace('#[ ]+#', '-', trim($opts->metadata['rolename'])));
$usertextcontents .= html_writer::span(
$opts->metadata['rolename'],
'meta role role-' . $role
Expand Down

0 comments on commit 76c7074

Please sign in to comment.