MDL-31160 block_navigation: Fixed incorrect thrid arg to substr.
This commit is contained in:
committed by
Sam Hemelryk
parent
f6b4ec2b4a
commit
a0cc337bdb
@@ -283,7 +283,7 @@ class block_navigation extends block_base {
|
||||
* @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
|
||||
|
||||
Reference in New Issue
Block a user