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:
ac97a7e
)
MDL-43760 Potential fix for fletcher scott issues with fullname.
author
Damyon Wiese
<damyon@moodle.com>
Mon, 20 Jan 2014 05:37:51 +0000
(13:37 +0800)
committer
Damyon Wiese
<damyon@moodle.com>
Mon, 20 Jan 2014 05:37:51 +0000
(13:37 +0800)
lib/moodlelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
bce4352
..
312ac4e
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-3628,7
+3628,7
@@
function fullname($user, $override=false) {
// The special characters are Japanese brackets that are common enough to make allowances for them (not covered by :punct:).
$patterns[] = '/[[:punct:]「」]*EMPTY[[:punct:]「」]*/u';
// This regular expression is to remove any double spaces in the display name.
- $patterns[] = '/\s{2,}/';
+ $patterns[] = '/\s{2,}/
u
';
foreach ($patterns as $pattern) {
$displayname = preg_replace($pattern, ' ', $displayname);
}