Permalink
Browse files

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

  • Loading branch information...
David Penner authored and wdjunaidi committed Jan 18, 2012
1 parent d9bdff1 commit 7547a5a3d69a421f10430d78c70ca418d30956ef
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 7547a5a

Please sign in to comment.