Permalink
Browse files

MDL-31160 block_navigation: Fixed incorrect thrid arg to substr.

  • Loading branch information...
1 parent 1aff7bb commit c3b0e64d811dd74dedd6c8c50855cf11ed0b37e0 David Penner committed with Sam Hemelryk Jan 18, 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 c3b0e64

Please sign in to comment.