mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'wip-MDL-31160-m22' of git://github.com/samhemelryk/moodle into MOODLE_22_STABLE
This commit is contained in:
commit
be15c303e0
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ class block_navigation extends block_base {
|
|||
* @return string The truncated string
|
||||
*/
|
||||
protected function trim_left($textlib, $string, $length) {
|
||||
return '...'.$textlib->substr($string, $textlib->strlen($string)-$length);
|
||||
return '...'.$textlib->substr($string, $textlib->strlen($string)-$length, $length);
|
||||
}
|
||||
/**
|
||||
* Truncate a string from the right
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue