mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'w36_MDL-29014_m22_str' of git://github.com/skodak/moodle
This commit is contained in:
commit
62b214d9a6
10 changed files with 22 additions and 22 deletions
|
@ -1773,8 +1773,8 @@ abstract class repository {
|
|||
}
|
||||
|
||||
public function get_short_filename($str, $maxlength) {
|
||||
if (strlen($str) >= $maxlength) {
|
||||
return trim(substr($str, 0, $maxlength)).'...';
|
||||
if (textlib::strlen($str) >= $maxlength) {
|
||||
return trim(textlib::substr($str, 0, $maxlength)).'...';
|
||||
} else {
|
||||
return $str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue