Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4756e9c
)
MDL-6122 truncate_userinfo() has to use unicode aware functions
author
Petr Skoda
<skodak@moodle.org>
Wed, 6 Oct 2010 19:12:49 +0000
(19:12 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Wed, 6 Oct 2010 19:12:49 +0000
(19:12 +0000)
lib/moodlelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
7dc96cd
..
bf96cc5
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-3496,10
+3496,11
@@
function truncate_userinfo($info) {
'url' => 255,
);
+ $textlib = textlib_get_instance();
// apply where needed
foreach (array_keys($info) as $key) {
if (!empty($limit[$key])) {
- $info[$key] = trim(substr($info[$key],0, $limit[$key]));
+ $info[$key] = trim(
$textlib->
substr($info[$key],0, $limit[$key]));
}
}