Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit a0cc337bdb36b3bad144b34c2ec41df7f0438dbe 1 parent f6b4ec2
David Penner authored samhemelryk committed
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.