Permalink
Browse files

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

…le into MOODLE_22_STABLE
  • Loading branch information...
2 parents acef9e8 + 5a479aa commit be15c303e0e868cf84e43a77fc124c3c39ebe24f @stronk7 stronk7 committed Jan 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit be15c30

Please sign in to comment.