Skip to content

Commit

Permalink
MDL-31160 block_navigation: Fixed incorrect thrid arg to substr.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Penner authored and Sam Hemelryk committed Jan 20, 2012
1 parent 269c884 commit 5a479aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/navigation/block_navigation.php
Expand Up @@ -283,7 +283,7 @@ public function trim(navigation_node $node, $mode=1, $long=50, $short=25, $recur
* @return string The truncated string * @return string The truncated string
*/ */
protected function trim_left($textlib, $string, $length) { 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 * Truncate a string from the right
Expand Down

0 comments on commit 5a479aa

Please sign in to comment.