Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'wip-MDL-31160-m21' of git://github.com/samhemelryk/mood…

…le into MOODLE_21_STABLE
  • Loading branch information...
commit 8837d68be527af11d08b2aded0238dd130d1e748 2 parents 5acb97c + c3b0e64
@stronk7 stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  blocks/navigation/block_navigation.php
View
2  blocks/navigation/block_navigation.php
@@ -283,7 +283,7 @@ public function trim(navigation_node $node, $mode=1, $long=50, $short=25, $recur
* @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
Please sign in to comment.
Something went wrong with that request. Please try again.